V
V
Vadim Ivanenko2015-01-06 14:25:23
.NET
Vadim Ivanenko, 2015-01-06 14:25:23

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

1 answer(s)
S
Sergey Pokrovsky, 2015-01-11
@supra7sky

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 question

Ask a Question

731 491 924 answers to any question