My apologies, I read this post:
http://stackoverflow.com/questions/316897/tdd-and-ado-net-entity-framework
But I don't think it covers what I'm looking for and other similar questions seem unanswered. So, forgive me if this has already been answered.
I have an application that I'm writing. I've created some Entity classes. I want to mock this during unit testing as I believe MS's implementation is good enough to warrant skipping the testing of it. =-}
So, my first guess:
Take the generated ObjectContext-deriving class and generate an interface off of it for the read properties that return ObjectQuery and the Add methods (at this point I'm not worrying about the updating of existing objects, just reading). However, I quickly ran into problems during the testing as I couldn't easily get the ObjectQuery properties working nicely.
I saw The Wayward Weblog's post about doing something similiar to this but with Linq to SQL and it just begs the question, hasn't anyone figured out a better way to mock the Entity framework than this?!
Thanks!