Mocking entity - Enity Framework 3.5
Is it possibl开发者_StackOverflow中文版e to mock EF 3.5 entities. if so..how?
Unfortunately, Entity Framework is not well suited for mocking, due to lack of interfaces for example. Here's another SO question that deals with a simialr issue.
I think your best bet is to use the Moles framework from Microsoft (though it doesn't have the nicest API to work with from what I've seen. But hey, at least it's free)
精彩评论