@@ -614,19 +614,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
614
614
resource . Links . ShouldNotBeNull ( ) ;
615
615
resource . Links . Self . Should ( ) . Be ( $ "/chromeWheels/{ resource . Id } ") ;
616
616
617
- resource . Attributes . ShouldHaveCount ( 2 ) ;
618
- resource . Attributes . ShouldContainKey ( "radius" ) ;
619
- resource . Attributes . ShouldContainKey ( "paintColor" ) ;
617
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "paintColor" ) ;
620
618
}
621
619
622
620
foreach ( ResourceObject resource in responseDocument . Data . ManyValue . Where ( value => value . Type == "carbonWheels" ) )
623
621
{
624
622
resource . Links . ShouldNotBeNull ( ) ;
625
623
resource . Links . Self . Should ( ) . Be ( $ "/carbonWheels/{ resource . Id } ") ;
626
624
627
- resource . Attributes . ShouldHaveCount ( 2 ) ;
628
- resource . Attributes . ShouldContainKey ( "radius" ) ;
629
- resource . Attributes . ShouldContainKey ( "hasTube" ) ;
625
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "hasTube" ) ;
630
626
}
631
627
632
628
foreach ( ResourceObject resource in responseDocument . Data . ManyValue )
@@ -686,19 +682,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
686
682
resource . Links . ShouldNotBeNull ( ) ;
687
683
resource . Links . Self . Should ( ) . Be ( $ "/chromeWheels/{ resource . Id } ") ;
688
684
689
- resource . Attributes . ShouldHaveCount ( 2 ) ;
690
- resource . Attributes . ShouldContainKey ( "radius" ) ;
691
- resource . Attributes . ShouldContainKey ( "paintColor" ) ;
685
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "paintColor" ) ;
692
686
}
693
687
694
688
foreach ( ResourceObject resource in responseDocument . Data . ManyValue . Where ( value => value . Type == "carbonWheels" ) )
695
689
{
696
690
resource . Links . ShouldNotBeNull ( ) ;
697
691
resource . Links . Self . Should ( ) . Be ( $ "/carbonWheels/{ resource . Id } ") ;
698
692
699
- resource . Attributes . ShouldHaveCount ( 2 ) ;
700
- resource . Attributes . ShouldContainKey ( "radius" ) ;
701
- resource . Attributes . ShouldContainKey ( "hasTube" ) ;
693
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "hasTube" ) ;
702
694
}
703
695
704
696
foreach ( ResourceObject resource in responseDocument . Data . ManyValue )
@@ -752,19 +744,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
752
744
resource . Links . ShouldNotBeNull ( ) ;
753
745
resource . Links . Self . Should ( ) . Be ( $ "/chromeWheels/{ resource . Id } ") ;
754
746
755
- resource . Attributes . ShouldHaveCount ( 2 ) ;
756
- resource . Attributes . ShouldContainKey ( "radius" ) ;
757
- resource . Attributes . ShouldContainKey ( "paintColor" ) ;
747
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "paintColor" ) ;
758
748
}
759
749
760
750
foreach ( ResourceObject resource in responseDocument . Data . ManyValue . Where ( value => value . Type == "carbonWheels" ) )
761
751
{
762
752
resource . Links . ShouldNotBeNull ( ) ;
763
753
resource . Links . Self . Should ( ) . Be ( $ "/carbonWheels/{ resource . Id } ") ;
764
754
765
- resource . Attributes . ShouldHaveCount ( 2 ) ;
766
- resource . Attributes . ShouldContainKey ( "radius" ) ;
767
- resource . Attributes . ShouldContainKey ( "hasTube" ) ;
755
+ resource . Attributes . ShouldOnlyContainKeys ( "radius" , "hasTube" ) ;
768
756
}
769
757
770
758
foreach ( ResourceObject resource in responseDocument . Data . ManyValue )
0 commit comments