@@ -112,7 +112,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
112112            resource . Attributes . ShouldContainKey ( "gearCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . GearCount ) ) ; 
113113            resource . Attributes . ShouldContainKey ( "passengerCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . PassengerCount ) ) ; 
114114
115-             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
115+             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
116116
117117            foreach  ( ( string  name ,  RelationshipObject ?  value )  in  resource . Relationships ) 
118118            { 
@@ -235,7 +235,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
235235            resource . Attributes . ShouldContainKey ( "gearCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . GearCount ) ) ; 
236236            resource . Attributes . ShouldContainKey ( "passengerCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . PassengerCount ) ) ; 
237237
238-             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
238+             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
239239
240240            foreach  ( ( string  name ,  RelationshipObject ?  value )  in  resource . Relationships ) 
241241            { 
@@ -287,7 +287,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
287287            resource . Attributes . ShouldContainKey ( "gearCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . GearCount ) ) ; 
288288            resource . Attributes . ShouldContainKey ( "passengerCount" ) . With ( value =>  value . Should ( ) . Be ( tandem . PassengerCount ) ) ; 
289289
290-             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
290+             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
291291
292292            foreach  ( ( string  name ,  RelationshipObject ?  value )  in  resource . Relationships ) 
293293            { 
@@ -323,7 +323,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
323323        responseDocument . Data . SingleValue . Type . Should ( ) . Be ( "tandems" ) ; 
324324        responseDocument . Data . SingleValue . Id . Should ( ) . Be ( tandem . StringId ) ; 
325325        responseDocument . Data . SingleValue . Attributes . ShouldOnlyContainKeys ( "weight" ,  "requiresDriverLicense" ,  "gearCount" ,  "passengerCount" ) ; 
326-         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
326+         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
327327    } 
328328
329329    [ Fact ] 
@@ -350,7 +350,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
350350        responseDocument . Data . SingleValue . Type . Should ( ) . Be ( "tandems" ) ; 
351351        responseDocument . Data . SingleValue . Id . Should ( ) . Be ( tandem . StringId ) ; 
352352        responseDocument . Data . SingleValue . Attributes . ShouldOnlyContainKeys ( "weight" ,  "requiresDriverLicense" ,  "gearCount" ,  "passengerCount" ) ; 
353-         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
353+         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
354354    } 
355355
356356    [ Fact ] 
@@ -377,7 +377,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
377377        responseDocument . Data . SingleValue . Type . Should ( ) . Be ( "tandems" ) ; 
378378        responseDocument . Data . SingleValue . Id . Should ( ) . Be ( tandem . StringId ) ; 
379379        responseDocument . Data . SingleValue . Attributes . ShouldOnlyContainKeys ( "weight" ,  "requiresDriverLicense" ,  "gearCount" ,  "passengerCount" ) ; 
380-         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "features" ) ; 
380+         responseDocument . Data . SingleValue . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "cargoBox" ,  "lights" ,  "foldingDimensions"  ,   " features") ; 
381381    } 
382382
383383    [ Fact ] 
@@ -549,15 +549,15 @@ public async Task Cannot_get_secondary_resource_defined_in_derived_type_at_concr
549549    { 
550550        // Arrange 
551551        Tandem  tandem  =  _fakers . Tandem . GenerateOne ( ) ; 
552-         tandem . Features  =  _fakers . GenericFeature . GenerateSet ( 1 ) ; 
552+         tandem . FoldingDimensions  =  _fakers . Box . GenerateOne ( ) ; 
553553
554554        await  _testContext . RunOnDatabaseAsync ( async  dbContext => 
555555        { 
556556            dbContext . Vehicles . Add ( tandem ) ; 
557557            await  dbContext . SaveChangesAsync ( ) ; 
558558        } ) ; 
559559
560-         string  route  =  $ "/bikes/{ tandem . StringId } /features "; 
560+         string  route  =  $ "/bikes/{ tandem . StringId } /foldingDimensions "; 
561561
562562        // Act 
563563        ( HttpResponseMessage  httpResponse ,  Document  responseDocument )  =  await  _testContext . ExecuteGetAsync < Document > ( route ) ; 
@@ -570,7 +570,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
570570        ErrorObject  error  =  responseDocument . Errors [ 0 ] ; 
571571        error . StatusCode . Should ( ) . Be ( HttpStatusCode . NotFound ) ; 
572572        error . Title . Should ( ) . Be ( "The requested relationship does not exist." ) ; 
573-         error . Detail . Should ( ) . Be ( "Resource of type 'bikes' does not contain a relationship named 'features '." ) ; 
573+         error . Detail . Should ( ) . Be ( "Resource of type 'bikes' does not contain a relationship named 'foldingDimensions '." ) ; 
574574        error . Source . Should ( ) . BeNull ( ) ; 
575575    } 
576576
@@ -1244,7 +1244,7 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
12441244        { 
12451245            resource . Id . Should ( ) . Be ( tandem . StringId ) ; 
12461246            resource . Attributes . ShouldOnlyContainKeys ( "weight" ,  "requiresDriverLicense" ,  "gearCount" ,  "passengerCount" ) ; 
1247-             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "lights" ,  "cargoBox" ,  "features" ) ; 
1247+             resource . Relationships . ShouldOnlyContainKeys ( "manufacturer" ,  "wheels" ,  "lights" ,  "cargoBox" ,  "foldingDimensions"  ,   " features") ; 
12481248        } ) ; 
12491249
12501250        responseDocument . Data . ManyValue . Should ( ) . ContainSingle ( resource =>  resource . Type  ==  "cars" ) . Subject . With ( resource => 
@@ -1547,6 +1547,12 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
15471547                    "weight": {{ tandem . Weight . ToString ( CultureInfo . InvariantCulture ) }}  
15481548                  }, 
15491549                  "relationships": { 
1550+                     "foldingDimensions": { 
1551+                       "links": { 
1552+                         "self": "/tandems/{{ tandem . StringId }} /relationships/foldingDimensions", 
1553+                         "related": "/tandems/{{ tandem . StringId }} /foldingDimensions" 
1554+                       } 
1555+                     }, 
15501556                    "features": { 
15511557                      "links": { 
15521558                        "self": "/tandems/{{ tandem . StringId }} /relationships/features", 
0 commit comments