I am wondering whether Unit Testing is possible if I use a DB-First Entity Framework model -- or shall I rather do Integrity Tests only? Can I detach the system from the DB while testing?
I already have a context factory to have maximum one context per request. I could make the factory return an interface which could be instanciated as a wrapper of the EF context OR a fake testing implementation. So I would have to manually wrap the tables and stored functions of the generated EF context (including each changes), because it is not implementing anything... Man, that would be pain in everything and surely wouldn't worth it.
So what are your recommendations about Unit (or not Unit) Testing in this environment?
Update: I'm using EF 5