Unit Testing in .NET: How to Make a Mock Entity Data Provider

Does anyone know if there is a way to mock Entity Data Provider so Unit tests do not fall into current data? I found this blog, but it seems the project has not been released:

http://www.chrisdoesdev.com/index.php/archives/62

thanks

+4
source share
2 answers

Mattwar has an excellent blog post about mocking LinqtoSql with reflection - maybe you can use this as a starting point?

+3
source

I would be interested to know this myself. I do not think this is possible because one of the things that the Agile / Alt.Net community acquired in the teach about the Entity Framework was the very problem of lack of ignorance of perseverance.

0
source

Source: https://habr.com/ru/post/1276881/


All Articles