Integration Testing Entity Framework code first with in-memory database
I'd like to run actual integration tests of my EF4.1 repositories against an in-memory database a la ayende's nhibernate version . I have a code first model, against a legacy database (old table and column names need mapping to my entites using code configurations). I'd like to be able to use Sqlite (or other) to: Generate an in-memory database from my model Create a DBContext for my model with this in-memory database I have already in place IoC/DI of a IDBContextFactory which gets constructed with my (Generic) Repositories (also using a GenericRepository pattern) There's bits and bobs on-line