You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/ResourceTypeMismatchTests.cs
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,5 +80,29 @@ public async Task Patching_Through_Relationship_Link_With_Mismatching_Resource_T
80
80
Assert.Equal("Resource type mismatch between request body and endpoint URL.",errorDocument.Errors[0].Title);
81
81
Assert.Equal("Expected resource of type 'people' in PATCH request body at endpoint '/api/v1/todoItems/1/relationships/owner', instead of 'todoItems'.",errorDocument.Errors[0].Detail);
Assert.Equal("Resource type mismatch between request body and endpoint URL.",errorDocument.Errors[0].Title);
105
+
Assert.Equal("Expected resource of type 'todoItems' in PATCH request body at endpoint '/api/v1/todoItems/1/relationships/childrenTodos', instead of 'articles'.",errorDocument.Errors[0].Detail);
0 commit comments