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 =>
6565 } ) ;
6666
6767 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 ) ) ;
6969 }
7070 }
7171
@@ -110,7 +110,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
110110 } ) ;
111111
112112 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 ) ) ;
114114 }
115115 }
116116
@@ -148,7 +148,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
148148 response . Data . Should ( ) . HaveCount ( 1 ) ;
149149 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
150150 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 ) ;
152152 response . Links . ShouldNotBeNull ( ) ;
153153 response . Links . Describedby . Should ( ) . Be ( "/swagger/v1/swagger.json" ) ;
154154 }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5757 response . Data . Should ( ) . HaveCount ( 1 ) ;
5858 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( nodes [ 1 ] . StringId ) ;
5959 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 ) ;
6161 }
6262 }
6363
@@ -95,7 +95,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
9595 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 0 ) . StringId ) ;
9696 response . Data . ElementAt ( 1 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
9797 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 ) ;
9999 }
100100 }
101101
@@ -132,7 +132,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
132132 response . Data . Should ( ) . HaveCount ( 1 ) ;
133133 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 2 ) . StringId ) ;
134134 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 ) ;
136136 }
137137 }
138138
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
6161 } ) ;
6262
6363 response . Meta . ShouldNotBeNull ( ) ;
64- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
64+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
6565 }
6666
6767 [ Fact ]
@@ -102,7 +102,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
102102 } ) ;
103103
104104 response . Meta . ShouldNotBeNull ( ) ;
105- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
105+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
106106 }
107107
108108 [ Fact ]
@@ -136,7 +136,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
136136 response . Data . Should ( ) . HaveCount ( 1 ) ;
137137 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
138138 response . Meta . ShouldNotBeNull ( ) ;
139- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 1 ) ) ;
139+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 1 ) ;
140140 response . Links . ShouldNotBeNull ( ) ;
141141 response . Links . Describedby . Should ( ) . Be ( "/swagger/v1/swagger.json" ) ;
142142 }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
5353 response . Data . Should ( ) . HaveCount ( 1 ) ;
5454 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( nodes [ 1 ] . StringId ) ;
5555 response . Meta . ShouldNotBeNull ( ) ;
56- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
56+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
5757 }
5858
5959 [ Fact ]
@@ -87,7 +87,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
8787 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 0 ) . StringId ) ;
8888 response . Data . ElementAt ( 1 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 1 ) . StringId ) ;
8989 response . Meta . ShouldNotBeNull ( ) ;
90- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
90+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
9191 }
9292
9393 [ Fact ]
@@ -120,7 +120,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
120120 response . Data . Should ( ) . HaveCount ( 1 ) ;
121121 response . Data . ElementAt ( 0 ) . Id . Should ( ) . Be ( node . Children . ElementAt ( 2 ) . StringId ) ;
122122 response . Meta . ShouldNotBeNull ( ) ;
123- response . Meta . ShouldContainKey ( "total" ) . With ( total => total . Should ( ) . Be ( 3 ) ) ;
123+ response . Meta . Should ( ) . ContainKey ( "total" ) . WhoseValue . Should ( ) . Be ( 3 ) ;
124124 }
125125
126126 [ Fact ]
You can’t perform that action at this time.
0 commit comments