File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
OpenApiKiotaEndToEndTests/QueryStrings
OpenApiNSwagEndToEndTests/QueryStrings Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
65
65
} ) ;
66
66
67
67
response . Meta . ShouldNotBeNull ( ) ;
68
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
68
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
69
69
}
70
70
}
71
71
@@ -110,7 +110,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
110
110
} ) ;
111
111
112
112
response . Meta . ShouldNotBeNull ( ) ;
113
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
113
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
114
114
}
115
115
}
116
116
@@ -148,7 +148,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
148
148
response . Data . Should ( ) . HaveCount ( 1 ) ;
149
149
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
150
150
response . Meta . ShouldNotBeNull ( ) ;
151
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
151
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
152
152
response . Links . ShouldNotBeNull ( ) ;
153
153
response . Links . Describedby . Should ( ) . Be ( "/swagger/v1/swagger.json" ) ;
154
154
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
57
57
response . Data . Should ( ) . HaveCount ( 1 ) ;
58
58
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( nodes [ 1 ] . StringId ) ;
59
59
response . Meta . ShouldNotBeNull ( ) ;
60
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
60
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
61
61
}
62
62
}
63
63
@@ -95,7 +95,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
95
95
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 0 ) . StringId ) ;
96
96
response . Data . ElementAt ( 1 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
97
97
response . Meta . ShouldNotBeNull ( ) ;
98
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
98
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
99
99
}
100
100
}
101
101
@@ -132,7 +132,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
132
132
response . Data . Should ( ) . HaveCount ( 1 ) ;
133
133
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 2 ) . StringId ) ;
134
134
response . Meta . ShouldNotBeNull ( ) ;
135
- response . Meta . AdditionalData . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
135
+ response . Meta . AdditionalData . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
136
136
}
137
137
}
138
138
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
61
61
} ) ;
62
62
63
63
response . Meta . ShouldNotBeNull ( ) ;
64
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
64
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
65
65
}
66
66
67
67
[ Fact ]
@@ -102,7 +102,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
102
102
} ) ;
103
103
104
104
response . Meta . ShouldNotBeNull ( ) ;
105
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
105
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
106
106
}
107
107
108
108
[ Fact ]
@@ -136,7 +136,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
136
136
response . Data . Should ( ) . HaveCount ( 1 ) ;
137
137
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
138
138
response . Meta . ShouldNotBeNull ( ) ;
139
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
139
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
140
140
response . Links . ShouldNotBeNull ( ) ;
141
141
response . Links . Describedby . Should ( ) . Be ( "/swagger/v1/swagger.json" ) ;
142
142
}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
53
53
response . Data . Should ( ) . HaveCount ( 1 ) ;
54
54
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( nodes [ 1 ] . StringId ) ;
55
55
response . Meta . ShouldNotBeNull ( ) ;
56
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
56
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
57
57
}
58
58
59
59
[ Fact ]
@@ -87,7 +87,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
87
87
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 0 ) . StringId ) ;
88
88
response . Data . ElementAt ( 1 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
89
89
response . Meta . ShouldNotBeNull ( ) ;
90
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
90
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
91
91
}
92
92
93
93
[ Fact ]
@@ -120,7 +120,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
120
120
response . Data . Should ( ) . HaveCount ( 1 ) ;
121
121
response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 2 ) . StringId ) ;
122
122
response . Meta . ShouldNotBeNull ( ) ;
123
- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
123
+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
124
124
}
125
125
126
126
[ Fact ]
You can’t perform that action at this time.
0 commit comments