We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://asp.net-hacker.rocks/2019/01/18/integration-testing-data-access-dotnetcore.html
The text was updated successfully, but these errors were encountered:
Actually .NET authors discourage mocking DbContexts and DbSets:
link
"Mocking DbSet for querying is complex and difficult, and suffers from the same disadvantages as the in-memory approach; we discourage this"
Sorry, something went wrong.
True but pretty much depends on the context and what you actually like to test. If you just need to fetch data I don't see any risk in mocking DbSets
No branches or pull requests
Integration testing data access in ASP.NET Core
https://asp.net-hacker.rocks/2019/01/18/integration-testing-data-access-dotnetcore.html
The text was updated successfully, but these errors were encountered: