Database access is easy, but testing database access is hard whether we’re an experienced .NET developer or new to the party. We may also hear a lot of opinions in our ecosystem about testing around data access scenarios. Should I mock, stub, use an in-memory version, and go all-in with integration testing.
Read more: https://khalidabuhakmeh.com/dotnet-database-integration-tests