write nunit test

How to mock SqlConnection, SqlCommand?
2 Replies
Jimmacle
Jimmacle6mo ago
by not doing that and running your tests against an actual server if you must mock your database queries, you're probably better off refactoring your queries into services that are more easily mocked
sarah hachouche B09
ok thanks

Did you find this page helpful?