@@ -71,7 +71,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
71
71
value . Links . Related . ShouldNotBeNull ( ) ;
72
72
} ) ;
73
73
74
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
74
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
75
75
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
76
76
postCaptured . Url . Should ( ) . BeNull ( ) ;
77
77
}
@@ -106,7 +106,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
106
106
responseDocument . Data . ManyValue [ 0 ] . Attributes . ShouldContainKey ( "caption" ) . With ( value => value . Should ( ) . Be ( post . Caption ) ) ;
107
107
responseDocument . Data . ManyValue [ 0 ] . Relationships . Should ( ) . BeNull ( ) ;
108
108
109
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
109
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
110
110
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
111
111
postCaptured . Url . Should ( ) . BeNull ( ) ;
112
112
}
@@ -149,7 +149,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
149
149
value . Links . Related . ShouldNotBeNull ( ) ;
150
150
} ) ;
151
151
152
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
152
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
153
153
postCaptured . Caption . Should ( ) . BeNull ( ) ;
154
154
postCaptured . Url . Should ( ) . BeNull ( ) ;
155
155
}
@@ -193,7 +193,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
193
193
value . Links . Related . ShouldNotBeNull ( ) ;
194
194
} ) ;
195
195
196
- var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . And . Subject . Single ( ) ;
196
+ var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . Which ;
197
197
blogCaptured . Id . Should ( ) . Be ( blog . Id ) ;
198
198
blogCaptured . Title . Should ( ) . BeNull ( ) ;
199
199
@@ -240,7 +240,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
240
240
value . Links . Related . ShouldNotBeNull ( ) ;
241
241
} ) ;
242
242
243
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
243
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
244
244
postCaptured . Url . Should ( ) . Be ( post . Url ) ;
245
245
postCaptured . Caption . Should ( ) . BeNull ( ) ;
246
246
}
@@ -299,7 +299,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
299
299
value . Links . Related . ShouldNotBeNull ( ) ;
300
300
} ) ;
301
301
302
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
302
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
303
303
postCaptured . Id . Should ( ) . Be ( post . Id ) ;
304
304
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
305
305
@@ -361,7 +361,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
361
361
value . Links . Related . ShouldNotBeNull ( ) ;
362
362
} ) ;
363
363
364
- var accountCaptured = ( WebAccount ) store . Resources . Should ( ) . ContainSingle ( resource => resource is WebAccount ) . And . Subject . Single ( ) ;
364
+ var accountCaptured = ( WebAccount ) store . Resources . Should ( ) . ContainSingle ( resource => resource is WebAccount ) . Which ;
365
365
accountCaptured . Id . Should ( ) . Be ( account . Id ) ;
366
366
accountCaptured . DisplayName . Should ( ) . Be ( account . DisplayName ) ;
367
367
@@ -423,7 +423,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
423
423
value . Links . Related . ShouldNotBeNull ( ) ;
424
424
} ) ;
425
425
426
- var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . And . Subject . Single ( ) ;
426
+ var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . Which ;
427
427
blogCaptured . Id . Should ( ) . Be ( blog . Id ) ;
428
428
blogCaptured . Owner . ShouldNotBeNull ( ) ;
429
429
blogCaptured . Owner . DisplayName . Should ( ) . Be ( blog . Owner . DisplayName ) ;
@@ -476,7 +476,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
476
476
responseDocument . Included [ 0 ] . Attributes . ShouldContainKey ( "color" ) . With ( value => value . Should ( ) . Be ( post . Labels . Single ( ) . Color ) ) ;
477
477
responseDocument . Included [ 0 ] . Relationships . Should ( ) . BeNull ( ) ;
478
478
479
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
479
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
480
480
postCaptured . Id . Should ( ) . Be ( post . Id ) ;
481
481
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
482
482
@@ -532,7 +532,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
532
532
responseDocument . Included [ 1 ] . Attributes . ShouldContainKey ( "caption" ) . With ( value => value . Should ( ) . Be ( blog . Owner . Posts [ 0 ] . Caption ) ) ;
533
533
responseDocument . Included [ 1 ] . Relationships . Should ( ) . BeNull ( ) ;
534
534
535
- var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . And . Subject . Single ( ) ;
535
+ var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . Which ;
536
536
blogCaptured . Id . Should ( ) . Be ( blog . Id ) ;
537
537
blogCaptured . Title . Should ( ) . Be ( blog . Title ) ;
538
538
blogCaptured . PlatformName . Should ( ) . BeNull ( ) ;
@@ -620,7 +620,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
620
620
value . Links . Related . ShouldNotBeNull ( ) ;
621
621
} ) ;
622
622
623
- var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . And . Subject . Single ( ) ;
623
+ var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . Which ;
624
624
blogCaptured . Id . Should ( ) . Be ( blog . Id ) ;
625
625
blogCaptured . Title . Should ( ) . Be ( blog . Title ) ;
626
626
blogCaptured . PlatformName . Should ( ) . BeNull ( ) ;
@@ -656,7 +656,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
656
656
responseDocument . Data . ManyValue [ 0 ] . Attributes . ShouldContainKey ( "caption" ) . With ( value => value . Should ( ) . Be ( post . Caption ) ) ;
657
657
responseDocument . Data . ManyValue [ 0 ] . Relationships . Should ( ) . BeNull ( ) ;
658
658
659
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
659
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
660
660
postCaptured . Id . Should ( ) . Be ( post . Id ) ;
661
661
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
662
662
postCaptured . Url . Should ( ) . BeNull ( ) ;
@@ -691,7 +691,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
691
691
responseDocument . Data . ManyValue [ 0 ] . Attributes . Should ( ) . BeNull ( ) ;
692
692
responseDocument . Data . ManyValue [ 0 ] . Relationships . Should ( ) . BeNull ( ) ;
693
693
694
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
694
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
695
695
postCaptured . Id . Should ( ) . Be ( post . Id ) ;
696
696
postCaptured . Url . Should ( ) . BeNull ( ) ;
697
697
}
@@ -824,7 +824,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
824
824
responseDocument . Data . SingleValue . Attributes . ShouldContainKey ( "showAdvertisements" ) . With ( value => value . Should ( ) . Be ( blog . ShowAdvertisements ) ) ;
825
825
responseDocument . Data . SingleValue . Relationships . Should ( ) . BeNull ( ) ;
826
826
827
- var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . And . Subject . Single ( ) ;
827
+ var blogCaptured = ( Blog ) store . Resources . Should ( ) . ContainSingle ( resource => resource is Blog ) . Which ;
828
828
blogCaptured . ShowAdvertisements . Should ( ) . Be ( blog . ShowAdvertisements ) ;
829
829
blogCaptured . IsPublished . Should ( ) . Be ( blog . IsPublished ) ;
830
830
blogCaptured . Title . Should ( ) . Be ( blog . Title ) ;
@@ -869,7 +869,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
869
869
value . Links . Related . ShouldNotBeNull ( ) ;
870
870
} ) ;
871
871
872
- var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . And . Subject . Single ( ) ;
872
+ var postCaptured = ( BlogPost ) store . Resources . Should ( ) . ContainSingle ( resource => resource is BlogPost ) . Which ;
873
873
postCaptured . Id . Should ( ) . Be ( post . Id ) ;
874
874
postCaptured . Caption . Should ( ) . Be ( post . Caption ) ;
875
875
postCaptured . Url . Should ( ) . Be ( post . Url ) ;
0 commit comments