Hi, I've implemented unit testing along the lines of this article with a fake object context and IObjectSet with POCO in EF4.
But I'm unsure how to implement a couple of methods on my fake object context for testing. I have CreateQuery and ExecuteFunction methods on my object context interface so that I can execute ESQL and Stored Procedures but I cant (easily) implement them in my fake object context.
An alternative would be to use a test double of my repository instead of a double of my object context as suggested here:
http://social.msdn.microsoft.com/Forums/en-US/adonetefx/thread/c4921443-e8a3-4414-92dd-eba1480a07ad/
But this would mean my real repository isnt being tested and would seem to just bypass the issue.
Can anyone offer any recommendations?