关于[Writing .NET Database Integration Tests]的摘要:
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. In this post, we will see why integration testing is my recommended path moving forward, discuss the pros and cons, and see how to implement it in our test infrastructure.
原文地址: https://khalidabuhakmeh.com/dotnet-database-integration-tests