EF4 - possible to mock ObjectContext for unit testing?
Posted
by steve.macdonald
on Stack Overflow
See other posts from Stack Overflow
or by steve.macdonald
Published on 2010-04-24T03:24:47Z
Indexed on
2010/04/24
3:33 UTC
Read the original article
Hit count: 1015
Can it be done without using TypeMock Islolator? I've found a few suggestions online such as passing in a metadata only connection string, however nothing I've come across besides TypeMock seems to truly allow for a mock ObjectContext that can be injected into services for unit testing. Do I plunk down the $$ for TypeMock, or are there alternatives? Has nobody managed to create anything comparable to TypeMock that is open source?
© Stack Overflow or respective owner