Unit test for entities retreived to memory #32
Merged
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.
Thanks for sorting out my branch. Thanks also for fixing the library - working beautifully now! This pull request should be much easier, as I am now in sync with the latest version.
This is some more work on the unit tests, still executing in about the same time, but uses the DbSet Local property to check that only the required number of entities have been retrieved from the database (rather than retrieving more than necessary into an ICollection and then using linq).
Also more reusable/logical code by taking advantage of the Nunit TestCaseSource annotation.
All tests (12 in total) currently pass, and take a fraction less than 10secs to execute on my laptop.
I will leave the testing framework alone now!
Thanks again for this great open source code!