@@ -54,7 +54,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
54
54
// Assert
55
55
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
56
56
57
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
57
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
58
58
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( broadcast . StringId ) ;
59
59
responseDocument . Data . SingleValue . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( broadcast . ArchivedAt . GetValueOrDefault ( ) ) ;
60
60
}
@@ -80,7 +80,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
80
80
// Assert
81
81
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
82
82
83
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
83
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
84
84
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( broadcast . StringId ) ;
85
85
responseDocument . Data . SingleValue . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeNull ( ) ;
86
86
}
@@ -107,7 +107,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
107
107
// Assert
108
108
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
109
109
110
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 1 ) ;
110
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 1 ) ;
111
111
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( broadcasts [ 1 ] . StringId ) ;
112
112
responseDocument . Data . ManyValue [ 0 ] . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeNull ( ) ;
113
113
}
@@ -134,7 +134,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
134
134
// Assert
135
135
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
136
136
137
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
137
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 2 ) ;
138
138
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( broadcasts [ 0 ] . StringId ) ;
139
139
responseDocument . Data . ManyValue [ 0 ] . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( broadcasts [ 0 ] . ArchivedAt . GetValueOrDefault ( ) ) ;
140
140
responseDocument . Data . ManyValue [ 1 ] . Id . Should ( ) . Be ( broadcasts [ 1 ] . StringId ) ;
@@ -163,10 +163,10 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
163
163
// Assert
164
164
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
165
165
166
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
166
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
167
167
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( station . StringId ) ;
168
168
169
- responseDocument . Included . Should ( ) . HaveCount ( 1 ) ;
169
+ responseDocument . Included . ShouldHaveCount ( 1 ) ;
170
170
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
171
171
responseDocument . Included [ 0 ] . Attributes [ "archivedAt" ] . Should ( ) . BeNull ( ) ;
172
172
}
@@ -196,10 +196,10 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
196
196
197
197
DateTimeOffset archivedAt0 = station . Broadcasts . ElementAt ( 0 ) . ArchivedAt . GetValueOrDefault ( ) ;
198
198
199
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
199
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
200
200
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( station . StringId ) ;
201
201
202
- responseDocument . Included . Should ( ) . HaveCount ( 2 ) ;
202
+ responseDocument . Included . ShouldHaveCount ( 2 ) ;
203
203
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 0 ) . StringId ) ;
204
204
responseDocument . Included [ 0 ] . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( archivedAt0 ) ;
205
205
responseDocument . Included [ 1 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
@@ -229,7 +229,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
229
229
230
230
DateTimeOffset archivedAt = comment . AppliesTo . ArchivedAt . GetValueOrDefault ( ) ;
231
231
232
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
232
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
233
233
responseDocument . Data . SingleValue . Id . Should ( ) . Be ( comment . AppliesTo . StringId ) ;
234
234
responseDocument . Data . SingleValue . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( archivedAt ) ;
235
235
}
@@ -256,7 +256,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
256
256
// Assert
257
257
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
258
258
259
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 1 ) ;
259
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 1 ) ;
260
260
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
261
261
responseDocument . Data . ManyValue [ 0 ] . Attributes [ "archivedAt" ] . Should ( ) . BeNull ( ) ;
262
262
}
@@ -285,7 +285,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
285
285
286
286
DateTimeOffset archivedAt0 = station . Broadcasts . ElementAt ( 0 ) . ArchivedAt . GetValueOrDefault ( ) ;
287
287
288
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
288
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 2 ) ;
289
289
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 0 ) . StringId ) ;
290
290
responseDocument . Data . ManyValue [ 0 ] . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( archivedAt0 ) ;
291
291
responseDocument . Data . ManyValue [ 1 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
@@ -315,10 +315,10 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
315
315
// Assert
316
316
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
317
317
318
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 1 ) ;
318
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 1 ) ;
319
319
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( network . Stations . ElementAt ( 0 ) . StringId ) ;
320
320
321
- responseDocument . Included . Should ( ) . HaveCount ( 1 ) ;
321
+ responseDocument . Included . ShouldHaveCount ( 1 ) ;
322
322
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( network . Stations . ElementAt ( 0 ) . Broadcasts . ElementAt ( 1 ) . StringId ) ;
323
323
responseDocument . Included [ 0 ] . Attributes [ "archivedAt" ] . Should ( ) . BeNull ( ) ;
324
324
}
@@ -348,10 +348,10 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
348
348
349
349
DateTimeOffset archivedAt0 = network . Stations . ElementAt ( 0 ) . Broadcasts . ElementAt ( 0 ) . ArchivedAt . GetValueOrDefault ( ) ;
350
350
351
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 1 ) ;
351
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 1 ) ;
352
352
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( network . Stations . ElementAt ( 0 ) . StringId ) ;
353
353
354
- responseDocument . Included . Should ( ) . HaveCount ( 2 ) ;
354
+ responseDocument . Included . ShouldHaveCount ( 2 ) ;
355
355
responseDocument . Included [ 0 ] . Id . Should ( ) . Be ( network . Stations . ElementAt ( 0 ) . Broadcasts . ElementAt ( 0 ) . StringId ) ;
356
356
responseDocument . Included [ 0 ] . Attributes [ "archivedAt" ] . As < DateTimeOffset ? > ( ) . Should ( ) . BeCloseTo ( archivedAt0 ) ;
357
357
responseDocument . Included [ 1 ] . Id . Should ( ) . Be ( network . Stations . ElementAt ( 0 ) . Broadcasts . ElementAt ( 1 ) . StringId ) ;
@@ -380,7 +380,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
380
380
// Assert
381
381
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
382
382
383
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 1 ) ;
383
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 1 ) ;
384
384
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
385
385
}
386
386
@@ -406,7 +406,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
406
406
// Assert
407
407
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . OK ) ;
408
408
409
- responseDocument . Data . ManyValue . Should ( ) . HaveCount ( 2 ) ;
409
+ responseDocument . Data . ManyValue . ShouldHaveCount ( 2 ) ;
410
410
responseDocument . Data . ManyValue [ 0 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 0 ) . StringId ) ;
411
411
responseDocument . Data . ManyValue [ 1 ] . Id . Should ( ) . Be ( station . Broadcasts . ElementAt ( 1 ) . StringId ) ;
412
412
}
@@ -438,7 +438,7 @@ public async Task Can_create_unarchived_resource()
438
438
// Assert
439
439
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . Created ) ;
440
440
441
- responseDocument . Data . SingleValue . Should ( ) . NotBeNull ( ) ;
441
+ responseDocument . Data . SingleValue . ShouldNotBeNull ( ) ;
442
442
responseDocument . Data . SingleValue . Attributes [ "title" ] . Should ( ) . Be ( newBroadcast . Title ) ;
443
443
responseDocument . Data . SingleValue . Attributes [ "airedAt" ] . As < DateTimeOffset > ( ) . Should ( ) . BeCloseTo ( newBroadcast . AiredAt ) ;
444
444
responseDocument . Data . SingleValue . Attributes [ "archivedAt" ] . Should ( ) . BeNull ( ) ;
@@ -472,7 +472,7 @@ public async Task Cannot_create_archived_resource()
472
472
// Assert
473
473
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . Forbidden ) ;
474
474
475
- responseDocument . Errors . Should ( ) . HaveCount ( 1 ) ;
475
+ responseDocument . Errors . ShouldHaveCount ( 1 ) ;
476
476
477
477
ErrorObject error = responseDocument . Errors [ 0 ] ;
478
478
error . StatusCode . Should ( ) . Be ( HttpStatusCode . Forbidden ) ;
@@ -604,7 +604,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
604
604
// Assert
605
605
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . Forbidden ) ;
606
606
607
- responseDocument . Errors . Should ( ) . HaveCount ( 1 ) ;
607
+ responseDocument . Errors . ShouldHaveCount ( 1 ) ;
608
608
609
609
ErrorObject error = responseDocument . Errors [ 0 ] ;
610
610
error . StatusCode . Should ( ) . Be ( HttpStatusCode . Forbidden ) ;
@@ -663,7 +663,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
663
663
// Assert
664
664
httpResponse . Should ( ) . HaveStatusCode ( HttpStatusCode . Forbidden ) ;
665
665
666
- responseDocument . Errors . Should ( ) . HaveCount ( 1 ) ;
666
+ responseDocument . Errors . ShouldHaveCount ( 1 ) ;
667
667
668
668
ErrorObject error = responseDocument . Errors [ 0 ] ;
669
669
error . StatusCode . Should ( ) . Be ( HttpStatusCode . Forbidden ) ;
0 commit comments