Skip to content
a-h edited this page Nov 9, 2011 · 2 revisions

Welcome to the FakeDbSet wiki!

I made this so that I could make a NuGet package and maintain any updates to the InMemoryDbSet, since I use it on a few projects.

I pretty much took what was on Stackoverflow (http://stackoverflow.com/questions/3463017/unit-testing-with-ef4-code-first-and-repository) with the minor change of making the backing store static so that content of the InMemoryDbSet were persisted (like a real database would).

Please take a look at the source code, since this contains a simple usage example.

Clone this wiki locally