@@ -168,7 +168,7 @@ public async Task Can_use_multiple_operations()
168168 // Assert
169169 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . OK ) ;
170170
171- responseDocument . Results . ShouldHaveCount ( 7 ) ;
171+ responseDocument . Results . Should ( ) . HaveCount ( 7 ) ;
172172
173173 responseDocument . Results [ 0 ] . Data . SingleValue . ShouldNotBeNull ( ) . With ( resource => resource . Type . Should ( ) . Be ( "people" ) ) ;
174174 responseDocument . Results [ 1 ] . Data . SingleValue . ShouldNotBeNull ( ) . With ( resource => resource . Type . Should ( ) . Be ( "people" ) ) ;
@@ -206,11 +206,11 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
206206 todoItemInDatabase . Owner . ShouldNotBeNull ( ) ;
207207 todoItemInDatabase . Owner . Id . Should ( ) . Be ( newOwnerId ) ;
208208 todoItemInDatabase . Assignee . Should ( ) . BeNull ( ) ;
209- todoItemInDatabase . Tags . ShouldHaveCount ( 1 ) ;
209+ todoItemInDatabase . Tags . Should ( ) . HaveCount ( 1 ) ;
210210 todoItemInDatabase . Tags . ElementAt ( 0 ) . Id . Should ( ) . Be ( newTagId ) ;
211211 } ) ;
212212
213- store . SqlCommands . ShouldHaveCount ( 15 ) ;
213+ store . SqlCommands . Should ( ) . HaveCount ( 15 ) ;
214214
215215 store . SqlCommands [ 0 ] . With ( command =>
216216 {
@@ -220,7 +220,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
220220 RETURNING "Id"
221221 """ ) ) ;
222222
223- command . Parameters . ShouldHaveCount ( 3 ) ;
223+ command . Parameters . Should ( ) . HaveCount ( 3 ) ;
224224 command . Parameters . Should ( ) . Contain ( "@p1" , newOwner . FirstName ) ;
225225 command . Parameters . Should ( ) . Contain ( "@p2" , newOwner . LastName ) ;
226226 command . Parameters . Should ( ) . Contain ( "@p3" , null ) ;
@@ -234,7 +234,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
234234 WHERE t1."Id" = @p1
235235 """ ) ) ;
236236
237- command . Parameters . ShouldHaveCount ( 1 ) ;
237+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
238238 command . Parameters . Should ( ) . Contain ( "@p1" , newOwnerId ) ;
239239 } ) ;
240240
@@ -246,7 +246,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
246246 RETURNING "Id"
247247 """ ) ) ;
248248
249- command . Parameters . ShouldHaveCount ( 3 ) ;
249+ command . Parameters . Should ( ) . HaveCount ( 3 ) ;
250250 command . Parameters . Should ( ) . Contain ( "@p1" , newAssignee . FirstName ) ;
251251 command . Parameters . Should ( ) . Contain ( "@p2" , newAssignee . LastName ) ;
252252 command . Parameters . Should ( ) . Contain ( "@p3" , null ) ;
@@ -260,7 +260,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
260260 WHERE t1."Id" = @p1
261261 """ ) ) ;
262262
263- command . Parameters . ShouldHaveCount ( 1 ) ;
263+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
264264 command . Parameters . Should ( ) . Contain ( "@p1" , newAssigneeId ) ;
265265 } ) ;
266266
@@ -272,7 +272,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
272272 RETURNING "Id"
273273 """ ) ) ;
274274
275- command . Parameters . ShouldHaveCount ( 2 ) ;
275+ command . Parameters . Should ( ) . HaveCount ( 2 ) ;
276276 command . Parameters . Should ( ) . Contain ( "@p1" , newTag . Name ) ;
277277 command . Parameters . Should ( ) . Contain ( "@p2" , null ) ;
278278 } ) ;
@@ -285,7 +285,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
285285 WHERE t1."Id" = @p1
286286 """ ) ) ;
287287
288- command . Parameters . ShouldHaveCount ( 1 ) ;
288+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
289289 command . Parameters . Should ( ) . Contain ( "@p1" , newTagId ) ;
290290 } ) ;
291291
@@ -297,7 +297,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
297297 RETURNING "Id"
298298 """ ) ) ;
299299
300- command . Parameters . ShouldHaveCount ( 7 ) ;
300+ command . Parameters . Should ( ) . HaveCount ( 7 ) ;
301301 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItem . Description ) ;
302302 command . Parameters . Should ( ) . Contain ( "@p2" , newTodoItem . Priority ) ;
303303 command . Parameters . Should ( ) . Contain ( "@p3" , newTodoItem . DurationInHours ) ;
@@ -315,7 +315,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
315315 WHERE t1."Id" = @p1
316316 """ ) ) ;
317317
318- command . Parameters . ShouldHaveCount ( 1 ) ;
318+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
319319 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItemId ) ;
320320 } ) ;
321321
@@ -328,7 +328,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
328328 WHERE t1."Id" = @p1
329329 """ ) ) ;
330330
331- command . Parameters . ShouldHaveCount ( 1 ) ;
331+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
332332 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItemId ) ;
333333 } ) ;
334334
@@ -340,7 +340,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
340340 WHERE "Id" = @p2
341341 """ ) ) ;
342342
343- command . Parameters . ShouldHaveCount ( 2 ) ;
343+ command . Parameters . Should ( ) . HaveCount ( 2 ) ;
344344 command . Parameters . Should ( ) . Contain ( "@p1" , newAssigneeId ) ;
345345 command . Parameters . Should ( ) . Contain ( "@p2" , newTodoItemId ) ;
346346 } ) ;
@@ -354,7 +354,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
354354 WHERE t1."Id" = @p1
355355 """ ) ) ;
356356
357- command . Parameters . ShouldHaveCount ( 1 ) ;
357+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
358358 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItemId ) ;
359359 } ) ;
360360
@@ -366,7 +366,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
366366 WHERE "Id" = @p2
367367 """ ) ) ;
368368
369- command . Parameters . ShouldHaveCount ( 2 ) ;
369+ command . Parameters . Should ( ) . HaveCount ( 2 ) ;
370370 command . Parameters . Should ( ) . Contain ( "@p1" , DapperTestContext . FrozenTime ) ;
371371 command . Parameters . Should ( ) . Contain ( "@p2" , newTodoItemId ) ;
372372 } ) ;
@@ -379,7 +379,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
379379 WHERE "Id" = @p2
380380 """ ) ) ;
381381
382- command . Parameters . ShouldHaveCount ( 2 ) ;
382+ command . Parameters . Should ( ) . HaveCount ( 2 ) ;
383383 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItemId ) ;
384384 command . Parameters . Should ( ) . Contain ( "@p2" , newTagId ) ;
385385 } ) ;
@@ -392,7 +392,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
392392 WHERE t1."Id" = @p1
393393 """ ) ) ;
394394
395- command . Parameters . ShouldHaveCount ( 1 ) ;
395+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
396396 command . Parameters . Should ( ) . Contain ( "@p1" , newTodoItemId ) ;
397397 } ) ;
398398
@@ -403,7 +403,7 @@ DELETE FROM "People"
403403 WHERE "Id" = @p1
404404 """ ) ) ;
405405
406- command . Parameters . ShouldHaveCount ( 1 ) ;
406+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
407407 command . Parameters . Should ( ) . Contain ( "@p1" , newAssigneeId ) ;
408408 } ) ;
409409 }
@@ -469,7 +469,7 @@ public async Task Can_rollback_on_error()
469469 // Assert
470470 httpResponse . ShouldHaveStatusCode ( HttpStatusCode . NotFound ) ;
471471
472- responseDocument . Errors . ShouldHaveCount ( 1 ) ;
472+ responseDocument . Errors . Should ( ) . HaveCount ( 1 ) ;
473473
474474 ErrorObject error = responseDocument . Errors [ 0 ] ;
475475 error . StatusCode . Should ( ) . Be ( HttpStatusCode . NotFound ) ;
@@ -484,7 +484,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
484484 peopleInDatabase . Should ( ) . BeEmpty ( ) ;
485485 } ) ;
486486
487- store . SqlCommands . ShouldHaveCount ( 5 ) ;
487+ store . SqlCommands . Should ( ) . HaveCount ( 5 ) ;
488488
489489 store . SqlCommands [ 0 ] . With ( command =>
490490 {
@@ -494,7 +494,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
494494 RETURNING "Id"
495495 """ ) ) ;
496496
497- command . Parameters . ShouldHaveCount ( 3 ) ;
497+ command . Parameters . Should ( ) . HaveCount ( 3 ) ;
498498 command . Parameters . Should ( ) . Contain ( "@p1" , null ) ;
499499 command . Parameters . Should ( ) . Contain ( "@p2" , newPerson . LastName ) ;
500500 command . Parameters . Should ( ) . Contain ( "@p3" , null ) ;
@@ -508,7 +508,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
508508 WHERE t1."Id" = @p1
509509 """ ) ) ;
510510
511- command . Parameters . ShouldHaveCount ( 1 ) ;
511+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
512512 command . Parameters . ShouldContainKey ( "@p1" ) . With ( value => value . ShouldNotBeNull ( ) ) ;
513513 } ) ;
514514
@@ -521,7 +521,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
521521 WHERE t1."Id" = @p1
522522 """ ) ) ;
523523
524- command . Parameters . ShouldHaveCount ( 1 ) ;
524+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
525525 command . Parameters . ShouldContainKey ( "@p1" ) . With ( value => value . ShouldNotBeNull ( ) ) ;
526526 } ) ;
527527
@@ -533,7 +533,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
533533 WHERE "Id" = @p2
534534 """ ) ) ;
535535
536- command . Parameters . ShouldHaveCount ( 2 ) ;
536+ command . Parameters . Should ( ) . HaveCount ( 2 ) ;
537537 command . Parameters . ShouldContainKey ( "@p1" ) . With ( value => value . ShouldNotBeNull ( ) ) ;
538538 command . Parameters . Should ( ) . Contain ( "@p2" , unknownTodoItemId ) ;
539539 } ) ;
@@ -546,7 +546,7 @@ SELECT t1."Id"
546546 WHERE t1."Id" = @p1
547547 """ ) ) ;
548548
549- command . Parameters . ShouldHaveCount ( 1 ) ;
549+ command . Parameters . Should ( ) . HaveCount ( 1 ) ;
550550 command . Parameters . Should ( ) . Contain ( "@p1" , unknownTodoItemId ) ;
551551 } ) ;
552552 }
0 commit comments