File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
test/JsonApiDotNetCoreExampleTests/Acceptance Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public async Task Total_Record_Count_Included()
5959 // assert
6060 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
6161 foreach ( var item in deserializedBody )
62- Assert . Equal ( person . Id , item . OwnerId ) ;
62+ Assert . Equal ( person . Id , item . Owner . Id ) ;
6363 }
6464
6565 [ Fact ]
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public async Task Can_Filter_By_Relationship_Id()
114114 // Assert
115115 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
116116 Assert . NotEmpty ( deserializedBody ) ;
117- Assert . Contains ( deserializedBody , ( i ) => i . OwnerId == person . Id ) ;
117+ Assert . Contains ( deserializedBody , ( i ) => i . Owner . Id == person . Id ) ;
118118 }
119119
120120 [ Fact ]
@@ -435,7 +435,8 @@ public async Task Can_Get_TodoItem_WithOwner()
435435 // Assert
436436 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
437437 var deserializedBody = ( TodoItem ) _fixture . GetService < IJsonApiDeSerializer > ( ) . Deserialize ( body ) ;
438- Assert . Equal ( person . Id , deserializedBody . OwnerId ) ;
438+
439+ Assert . Equal ( person . Id , deserializedBody . Owner . Id ) ;
439440 Assert . Equal ( todoItem . Id , deserializedBody . Id ) ;
440441 Assert . Equal ( todoItem . Description , deserializedBody . Description ) ;
441442 Assert . Equal ( todoItem . Ordinal , deserializedBody . Ordinal ) ;
You can’t perform that action at this time.
0 commit comments