Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've extracted the acceptance tests from #50 and put them in
JSONAPI.EntityFramework.Tests
. These tests boot up a sample projectJSONAPI.EntityFramework.Tests.TestWebApp
. This sample API is more fleshed out than the Todos, with 4 different blog-related model classes. This should let us model more interesting scenarios in the future.I did have to make one change to
JsonApiFormatter
in order to make my POST test work. To-many resources were being serialized as null if the underlying result's property value was null. The spec indicates that those should be empty arrays.Of course, all these tests will have to be changed once json-api/json-api#341 lands, but at least now we have a baseline.