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()
59
59
// assert
60
60
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
61
61
foreach ( var item in deserializedBody )
62
- Assert . Equal ( person . Id , item . OwnerId ) ;
62
+ Assert . Equal ( person . Id , item . Owner . Id ) ;
63
63
}
64
64
65
65
[ Fact ]
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public async Task Can_Filter_By_Relationship_Id()
114
114
// Assert
115
115
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
116
116
Assert . NotEmpty ( deserializedBody ) ;
117
- Assert . Contains ( deserializedBody , ( i ) => i . OwnerId == person . Id ) ;
117
+ Assert . Contains ( deserializedBody , ( i ) => i . Owner . Id == person . Id ) ;
118
118
}
119
119
120
120
[ Fact ]
@@ -435,7 +435,8 @@ public async Task Can_Get_TodoItem_WithOwner()
435
435
// Assert
436
436
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
437
437
var deserializedBody = ( TodoItem ) _fixture . GetService < IJsonApiDeSerializer > ( ) . Deserialize ( body ) ;
438
- Assert . Equal ( person . Id , deserializedBody . OwnerId ) ;
438
+
439
+ Assert . Equal ( person . Id , deserializedBody . Owner . Id ) ;
439
440
Assert . Equal ( todoItem . Id , deserializedBody . Id ) ;
440
441
Assert . Equal ( todoItem . Description , deserializedBody . Description ) ;
441
442
Assert . Equal ( todoItem . Ordinal , deserializedBody . Ordinal ) ;
You can’t perform that action at this time.
0 commit comments