@@ -144,7 +144,7 @@ public async Task Can_create_resources()
144144 resource . Attributes . ShouldContainKey ( "genre" ) . With ( value => value . Should ( ) . Be ( newTracks [ index ] . Genre ) ) ;
145145 resource . Attributes . ShouldContainKey ( "releasedAt" ) . With ( value => value . Should ( ) . Be ( newTracks [ index ] . ReleasedAt ) ) ;
146146
147- resource . Relationships . ShouldNotBeEmpty ( ) ;
147+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
148148 } ) ;
149149 }
150150
@@ -264,7 +264,7 @@ public async Task Cannot_create_resource_with_unknown_attribute()
264264 error . Detail . Should ( ) . Be ( "Attribute 'doesNotExist' does not exist on resource type 'playlists'." ) ;
265265 error . Source . ShouldNotBeNull ( ) ;
266266 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 ( ) ) ;
268268 }
269269
270270 [ Fact ]
@@ -310,7 +310,7 @@ public async Task Can_create_resource_with_unknown_attribute()
310310 {
311311 resource . Type . Should ( ) . Be ( "playlists" ) ;
312312 resource . Attributes . ShouldContainKey ( "name" ) . With ( value => value . Should ( ) . Be ( newName ) ) ;
313- resource . Relationships . ShouldNotBeEmpty ( ) ;
313+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
314314 } ) ;
315315
316316 long newPlaylistId = long . Parse ( responseDocument . Results [ 0 ] . Data . SingleValue ! . Id . ShouldNotBeNull ( ) ) ;
@@ -369,7 +369,7 @@ public async Task Cannot_create_resource_with_unknown_relationship()
369369 error . Detail . Should ( ) . Be ( "Relationship 'doesNotExist' does not exist on resource type 'lyrics'." ) ;
370370 error . Source . ShouldNotBeNull ( ) ;
371371 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 ( ) ) ;
373373 }
374374
375375 [ Fact ]
@@ -424,8 +424,8 @@ public async Task Can_create_resource_with_unknown_relationship()
424424 responseDocument . Results [ 0 ] . Data . SingleValue . ShouldNotBeNull ( ) . With ( resource =>
425425 {
426426 resource . Type . Should ( ) . Be ( "lyrics" ) ;
427- resource . Attributes . ShouldNotBeEmpty ( ) ;
428- resource . Relationships . ShouldNotBeEmpty ( ) ;
427+ resource . Attributes . Should ( ) . NotBeEmpty ( ) ;
428+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
429429 } ) ;
430430
431431 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()
481481 error . Detail . Should ( ) . BeNull ( ) ;
482482 error . Source . ShouldNotBeNull ( ) ;
483483 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 ( ) ) ;
485485 }
486486
487487 [ Fact ]
@@ -516,7 +516,7 @@ public async Task Cannot_create_resource_for_href_element()
516516 error . Detail . Should ( ) . BeNull ( ) ;
517517 error . Source . ShouldNotBeNull ( ) ;
518518 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 ( ) ) ;
520520 }
521521
522522 [ Fact ]
@@ -554,7 +554,7 @@ public async Task Cannot_create_resource_for_ref_element()
554554 error . Detail . Should ( ) . BeNull ( ) ;
555555 error . Source . ShouldNotBeNull ( ) ;
556556 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 ( ) ) ;
558558 }
559559
560560 [ Fact ]
@@ -588,7 +588,7 @@ public async Task Cannot_create_resource_for_missing_data()
588588 error . Detail . Should ( ) . BeNull ( ) ;
589589 error . Source . ShouldNotBeNull ( ) ;
590590 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 ( ) ) ;
592592 }
593593
594594 [ Fact ]
@@ -623,7 +623,7 @@ public async Task Cannot_create_resource_for_null_data()
623623 error . Detail . Should ( ) . BeNull ( ) ;
624624 error . Source . ShouldNotBeNull ( ) ;
625625 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 ( ) ) ;
627627 }
628628
629629 [ Fact ]
@@ -670,7 +670,7 @@ public async Task Cannot_create_resource_for_array_data()
670670 error . Detail . Should ( ) . BeNull ( ) ;
671671 error . Source . ShouldNotBeNull ( ) ;
672672 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 ( ) ) ;
674674 }
675675
676676 [ Fact ]
@@ -710,7 +710,7 @@ public async Task Cannot_create_resource_for_missing_type()
710710 error . Detail . Should ( ) . BeNull ( ) ;
711711 error . Source . ShouldNotBeNull ( ) ;
712712 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 ( ) ) ;
714714 }
715715
716716 [ Fact ]
@@ -748,7 +748,7 @@ public async Task Cannot_create_resource_for_unknown_type()
748748 error . Detail . Should ( ) . Be ( $ "Resource type '{ Unknown . ResourceType } ' does not exist.") ;
749749 error . Source . ShouldNotBeNull ( ) ;
750750 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 ( ) ) ;
752752 }
753753
754754 [ Fact ]
@@ -793,7 +793,7 @@ public async Task Cannot_create_resource_with_readonly_attribute()
793793 error . Detail . Should ( ) . Be ( "Attribute 'isArchived' on resource type 'playlists' is read-only." ) ;
794794 error . Source . ShouldNotBeNull ( ) ;
795795 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 ( ) ) ;
797797 }
798798
799799 [ Fact ]
@@ -835,7 +835,7 @@ public async Task Cannot_create_resource_with_incompatible_attribute_value()
835835 error . Detail . Should ( ) . Be ( "Failed to convert attribute 'bornAt' with value '12345' of type 'Number' to type 'DateTimeOffset'." ) ;
836836 error . Source . ShouldNotBeNull ( ) ;
837837 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 ( ) ) ;
839839 }
840840
841841 [ Fact ]
@@ -917,7 +917,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
917917 {
918918 resource . Type . Should ( ) . Be ( "musicTracks" ) ;
919919 resource . Attributes . ShouldContainKey ( "title" ) . With ( value => value . Should ( ) . Be ( newTitle ) ) ;
920- resource . Relationships . ShouldNotBeEmpty ( ) ;
920+ resource . Relationships . Should ( ) . NotBeEmpty ( ) ;
921921 } ) ;
922922
923923 Guid newTrackId = Guid . Parse ( responseDocument . Results [ 0 ] . Data . SingleValue ! . Id . ShouldNotBeNull ( ) ) ;
@@ -988,6 +988,6 @@ public async Task Cannot_assign_attribute_with_blocked_capability()
988988 error . Detail . Should ( ) . Be ( "The attribute 'createdAt' on resource type 'lyrics' cannot be assigned to." ) ;
989989 error . Source . ShouldNotBeNull ( ) ;
990990 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 ( ) ) ;
992992 }
993993}
0 commit comments