@@ -7,6 +7,7 @@ public static class TestData
7
7
Boolean = true ,
8
8
Byte = 1 ,
9
9
Char = 'C' ,
10
+ DateOnly = DateOnly . Parse ( "2021-07-09" ) ,
10
11
DateTime = DateTime . Parse ( "2021-07-09T18:37:53.2473503" ) ,
11
12
DateTimeOffset = DateTimeOffset . Parse ( "2021-07-09T20:39:07.8226113+02:00" ) ,
12
13
Decimal = 2.1M ,
@@ -19,26 +20,30 @@ public static class TestData
19
20
SByte = 7 ,
20
21
Single = 8.1f ,
21
22
String = "String" ,
22
- //TimeSpan = TimeSpan.Parse("1:02:03:04"),
23
+ TimeOnly = TimeOnly . Parse ( "18:37:53.2473503" ) ,
24
+ TimeSpan = TimeSpan . Parse ( "1.02:03:04" ) ,
23
25
UInt16 = 9 ,
24
26
UInt32 = 10U ,
25
27
UInt64 = 11UL ,
26
28
Uri = new Uri ( "https://github.com/hlaueriksson/CommandQuery" ) ,
27
- // Version = Version.Parse("1.2.3.4"),
29
+ Version = Version . Parse ( "1.2.3.4" ) ,
28
30
29
31
Nullable = 12 ,
32
+ //Tuple = (13, 14),
30
33
31
- Array = new [ ] { 13 , 14 } ,
32
- IEnumerable = new [ ] { 15 , 16 } ,
33
- IList = new [ ] { 17 , 18 } ,
34
- IReadOnlyList = new [ ] { 19 , 20 } ,
34
+ Array = new [ ] { 15 , 16 } ,
35
+ //IDictionary = new Dictionary<int, int>() { { 17, 18 } },
36
+ IEnumerable = new [ ] { 19 , 20 } ,
37
+ IList = new [ ] { 21 , 22 } ,
38
+ IReadOnlyList = new [ ] { 23 , 24 } ,
35
39
} ;
36
40
37
41
public static readonly Dictionary < string , object > FakeComplexQuery_As_Dictionary_Of_String_Object = new ( )
38
42
{
39
43
{ "Boolean" , "true" } ,
40
44
{ "Byte" , "1" } ,
41
45
{ "Char" , "C" } ,
46
+ { "DateOnly" , "2021-07-09" } ,
42
47
{ "DateTime" , "2021-07-09T18:37:53.2473503" } ,
43
48
{ "DateTimeOffset" , "2021-07-09T20:39:07.8226113+02:00" } ,
44
49
{ "Decimal" , "2.1" } ,
@@ -51,19 +56,22 @@ public static class TestData
51
56
{ "SByte" , "7" } ,
52
57
{ "Single" , "8.1" } ,
53
58
{ "String" , "String" } ,
54
- //{ "TimeSpan", "1:02:03:04" },
59
+ { "TimeOnly" , "18:37:53.2473503" } ,
60
+ { "TimeSpan" , "1.02:03:04" } ,
55
61
{ "UInt16" , "9" } ,
56
62
{ "UInt32" , "10" } ,
57
63
{ "UInt64" , "11" } ,
58
64
{ "Uri" , "https://github.com/hlaueriksson/CommandQuery" } ,
59
- // { "Version", "1.2.3.4" },
65
+ { "Version" , "1.2.3.4" } ,
60
66
61
67
{ "Nullable" , "12" } ,
68
+ //{ "Tuple", (13, 14) },
62
69
63
- { "Array" , new [ ] { "13" , "14" } } ,
64
- { "IEnumerable" , new [ ] { "15" , "16" } } ,
65
- { "IList" , new [ ] { "17" , "18" } } ,
66
- { "IReadOnlyList" , new [ ] { "19" , "20" } } ,
70
+ { "Array" , new [ ] { "15" , "16" } } ,
71
+ //{ "IDictionary", new Dictionary<int, int> { { 17, 18 } } },
72
+ { "IEnumerable" , new [ ] { "19" , "20" } } ,
73
+ { "IList" , new [ ] { "21" , "22" } } ,
74
+ { "IReadOnlyList" , new [ ] { "23" , "24" } } ,
67
75
68
76
{ "UndefinedProperty" , "should_not_be_used" } ,
69
77
} ;
@@ -73,6 +81,7 @@ public static class TestData
73
81
{ "Boolean" , new [ ] { "true" } } ,
74
82
{ "Byte" , new [ ] { "1" } } ,
75
83
{ "Char" , new [ ] { "C" } } ,
84
+ { "DateOnly" , new [ ] { "2021-07-09" } } ,
76
85
{ "DateTime" , new [ ] { "2021-07-09T18:37:53.2473503" } } ,
77
86
{ "DateTimeOffset" , new [ ] { "2021-07-09T20:39:07.8226113+02:00" } } ,
78
87
{ "Decimal" , new [ ] { "2.1" } } ,
@@ -85,19 +94,22 @@ public static class TestData
85
94
{ "SByte" , new [ ] { "7" } } ,
86
95
{ "Single" , new [ ] { "8.1" } } ,
87
96
{ "String" , new [ ] { "String" } } ,
88
- //{ "TimeSpan", new[] { "1:02:03:04,0000005" } },
97
+ { "TimeOnly" , new [ ] { "18:37:53.2473503" } } ,
98
+ { "TimeSpan" , new [ ] { "1.02:03:04" } } ,
89
99
{ "UInt16" , new [ ] { "9" } } ,
90
100
{ "UInt32" , new [ ] { "10" } } ,
91
101
{ "UInt64" , new [ ] { "11" } } ,
92
102
{ "Uri" , new [ ] { "https://github.com/hlaueriksson/CommandQuery" } } ,
93
- // { "Version", new[] { "1.2.3.4" } },
103
+ { "Version" , new [ ] { "1.2.3.4" } } ,
94
104
95
105
{ "Nullable" , new [ ] { "12" } } ,
106
+ //{ "Tuple", new[] { "13", "14" } },
96
107
97
- { "Array" , new [ ] { "13" , "14" } } ,
98
- { "IEnumerable" , new [ ] { "15" , "16" } } ,
99
- { "IList" , new [ ] { "17" , "18" } } ,
100
- { "IReadOnlyList" , new [ ] { "19" , "20" } } ,
108
+ { "Array" , new [ ] { "15" , "16" } } ,
109
+ //{ "IDictionary", new[] { "{\"17\": 18}" } },
110
+ { "IEnumerable" , new [ ] { "19" , "20" } } ,
111
+ { "IList" , new [ ] { "21" , "22" } } ,
112
+ { "IReadOnlyList" , new [ ] { "23" , "24" } } ,
101
113
102
114
{ "UndefinedProperty" , new [ ] { "should_not_be_used" } } ,
103
115
} ;
@@ -107,12 +119,12 @@ public static class TestData
107
119
DateTimeUnspecified = new DateTime ( 2021 , 7 , 10 , 9 , 48 , 41 , DateTimeKind . Unspecified ) ,
108
120
DateTimeUtc = new DateTime ( 2021 , 7 , 10 , 9 , 48 , 41 , DateTimeKind . Utc ) ,
109
121
//DateTimeLocal = new DateTime(2021, 7, 10, 9, 48, 41, DateTimeKind.Local),
110
- DateTimeArray = new [ ]
111
- {
122
+ DateTimeArray =
123
+ [
112
124
new DateTime ( 2021 , 7 , 10 , 9 , 48 , 41 , DateTimeKind . Unspecified ) ,
113
125
new DateTime ( 2021 , 7 , 10 , 9 , 48 , 41 , DateTimeKind . Utc ) ,
114
126
//new DateTime(2021, 7, 10, 9, 48, 41, DateTimeKind.Local),
115
- }
127
+ ]
116
128
} ;
117
129
118
130
public static readonly Dictionary < string , object > FakeDateTimeQuery_As_Dictionary_Of_String_Object = new ( )
0 commit comments