@@ -144,7 +144,7 @@ public async Task Can_create_resources()
144
144
resource . Attributes . ShouldContainKey ( "genre" ) . With ( value => value . Should ( ) . Be ( newTracks [ index ] . Genre ) ) ;
145
145
resource . Attributes . ShouldContainKey ( "releasedAt" ) . With ( value => value . Should ( ) . Be ( newTracks [ index ] . ReleasedAt ) ) ;
146
146
147
- resource . Relationships . ShouldNotBeEmpty ( ) ;
147
+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
148
148
} ) ;
149
149
}
150
150
@@ -264,7 +264,7 @@ public async Task Cannot_create_resource_with_unknown_attribute()
264
264
error . Detail . Should ( ) . Be ( "Attribute 'doesNotExist' does not exist on resource type 'playlists'." ) ;
265
265
error . Source . ShouldNotBeNull ( ) ;
266
266
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/attributes/doesNotExist" ) ;
267
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
267
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
268
268
}
269
269
270
270
[ Fact ]
@@ -310,7 +310,7 @@ public async Task Can_create_resource_with_unknown_attribute()
310
310
{
311
311
resource . Type . Should ( ) . Be ( "playlists" ) ;
312
312
resource . Attributes . ShouldContainKey ( "name" ) . With ( value => value . Should ( ) . Be ( newName ) ) ;
313
- resource . Relationships . ShouldNotBeEmpty ( ) ;
313
+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
314
314
} ) ;
315
315
316
316
long newPlaylistId = long . Parse ( responseDocument . Results [ 0 ] . Data . SingleValue ! . Id . ShouldNotBeNull ( ) ) ;
@@ -369,7 +369,7 @@ public async Task Cannot_create_resource_with_unknown_relationship()
369
369
error . Detail . Should ( ) . Be ( "Relationship 'doesNotExist' does not exist on resource type 'lyrics'." ) ;
370
370
error . Source . ShouldNotBeNull ( ) ;
371
371
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/relationships/doesNotExist" ) ;
372
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
372
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
373
373
}
374
374
375
375
[ Fact ]
@@ -424,8 +424,8 @@ public async Task Can_create_resource_with_unknown_relationship()
424
424
responseDocument . Results [ 0 ] . Data . SingleValue . ShouldNotBeNull ( ) . With ( resource =>
425
425
{
426
426
resource . Type . Should ( ) . Be ( "lyrics" ) ;
427
- resource . Attributes . ShouldNotBeEmpty ( ) ;
428
- resource . Relationships . ShouldNotBeEmpty ( ) ;
427
+ resource . Attributes . Should ( ) . NotBeEmpty ( ) ;
428
+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
429
429
} ) ;
430
430
431
431
long newLyricId = long . Parse ( responseDocument . Results [ 0 ] . Data . SingleValue ! . Id . ShouldNotBeNull ( ) ) ;
@@ -481,7 +481,7 @@ public async Task Cannot_create_resource_with_client_generated_ID()
481
481
error . Detail . Should ( ) . BeNull ( ) ;
482
482
error . Source . ShouldNotBeNull ( ) ;
483
483
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/id" ) ;
484
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
484
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
485
485
}
486
486
487
487
[ Fact ]
@@ -516,7 +516,7 @@ public async Task Cannot_create_resource_for_href_element()
516
516
error . Detail . Should ( ) . BeNull ( ) ;
517
517
error . Source . ShouldNotBeNull ( ) ;
518
518
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/href" ) ;
519
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
519
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
520
520
}
521
521
522
522
[ Fact ]
@@ -554,7 +554,7 @@ public async Task Cannot_create_resource_for_ref_element()
554
554
error . Detail . Should ( ) . BeNull ( ) ;
555
555
error . Source . ShouldNotBeNull ( ) ;
556
556
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/ref" ) ;
557
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
557
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
558
558
}
559
559
560
560
[ Fact ]
@@ -588,7 +588,7 @@ public async Task Cannot_create_resource_for_missing_data()
588
588
error . Detail . Should ( ) . BeNull ( ) ;
589
589
error . Source . ShouldNotBeNull ( ) ;
590
590
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]" ) ;
591
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
591
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
592
592
}
593
593
594
594
[ Fact ]
@@ -623,7 +623,7 @@ public async Task Cannot_create_resource_for_null_data()
623
623
error . Detail . Should ( ) . BeNull ( ) ;
624
624
error . Source . ShouldNotBeNull ( ) ;
625
625
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data" ) ;
626
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
626
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
627
627
}
628
628
629
629
[ Fact ]
@@ -670,7 +670,7 @@ public async Task Cannot_create_resource_for_array_data()
670
670
error . Detail . Should ( ) . BeNull ( ) ;
671
671
error . Source . ShouldNotBeNull ( ) ;
672
672
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data" ) ;
673
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
673
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
674
674
}
675
675
676
676
[ Fact ]
@@ -710,7 +710,7 @@ public async Task Cannot_create_resource_for_missing_type()
710
710
error . Detail . Should ( ) . BeNull ( ) ;
711
711
error . Source . ShouldNotBeNull ( ) ;
712
712
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data" ) ;
713
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
713
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
714
714
}
715
715
716
716
[ Fact ]
@@ -748,7 +748,7 @@ public async Task Cannot_create_resource_for_unknown_type()
748
748
error . Detail . Should ( ) . Be ( $ "Resource type '{ Unknown . ResourceType } ' does not exist.") ;
749
749
error . Source . ShouldNotBeNull ( ) ;
750
750
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/type" ) ;
751
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
751
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
752
752
}
753
753
754
754
[ Fact ]
@@ -793,7 +793,7 @@ public async Task Cannot_create_resource_with_readonly_attribute()
793
793
error . Detail . Should ( ) . Be ( "Attribute 'isArchived' on resource type 'playlists' is read-only." ) ;
794
794
error . Source . ShouldNotBeNull ( ) ;
795
795
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/attributes/isArchived" ) ;
796
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
796
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
797
797
}
798
798
799
799
[ Fact ]
@@ -835,7 +835,7 @@ public async Task Cannot_create_resource_with_incompatible_attribute_value()
835
835
error . Detail . Should ( ) . Be ( "Failed to convert attribute 'bornAt' with value '12345' of type 'Number' to type 'DateTimeOffset'." ) ;
836
836
error . Source . ShouldNotBeNull ( ) ;
837
837
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/attributes/bornAt" ) ;
838
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
838
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
839
839
}
840
840
841
841
[ Fact ]
@@ -917,7 +917,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
917
917
{
918
918
resource . Type . Should ( ) . Be ( "musicTracks" ) ;
919
919
resource . Attributes . ShouldContainKey ( "title" ) . With ( value => value . Should ( ) . Be ( newTitle ) ) ;
920
- resource . Relationships . ShouldNotBeEmpty ( ) ;
920
+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
921
921
} ) ;
922
922
923
923
Guid newTrackId = Guid . Parse ( responseDocument . Results [ 0 ] . Data . SingleValue ! . Id . ShouldNotBeNull ( ) ) ;
@@ -988,6 +988,6 @@ public async Task Cannot_assign_attribute_with_blocked_capability()
988
988
error . Detail . Should ( ) . Be ( "The attribute 'createdAt' on resource type 'lyrics' cannot be assigned to." ) ;
989
989
error . Source . ShouldNotBeNull ( ) ;
990
990
error . Source . Pointer . Should ( ) . Be ( "/atomic:operations[0]/data/attributes/createdAt" ) ;
991
- error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . ShouldNotBeEmpty ( ) ) ;
991
+ error . Meta . ShouldContainKey ( "requestBody" ) . With ( value => value . ShouldNotBeNull ( ) . ToString ( ) . Should ( ) . NotBeEmpty ( ) ) ;
992
992
}
993
993
}
0 commit comments