Answer the question
In order to leave comments, you need to log in
How to do integration testing of business logic on EF and database?
For the most part, the business logic is not very complicated and I see no point in writing unit tests of all repositories with mocks for DbContext'a DbSet's. I need to test the database and I want to know how to do it in the most correct way.
Answer the question
In order to leave comments, you need to log in
There is a pretty descriptive article on msdn that might help you. But this is in general, for each specific case - their own tests.
msdn.microsoft.com/en-us/data/dn314429.aspx
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question