How to isolate EF InMemory database per XUnit test
问题 I am trying use InMemory EF7 database for my xunit repository test. But my problem is that when i try to Dispose the created context the in memory db persist. It means that one test involve other. I have read this article Unit Testing Entity Framework 7 with the In Memory Data Store and I have tried to setup the context in the constructor of my TestClass. But this approach doesn't work. When I run tests separately everything is OK, but my first test method add something into DB and second