Rab Hallett has a nice tool in the VS Gallery that uses T4 templates to generate mocks for unit-testing EF-based applications

Maintenance-Free Mocking for Unit Testing with EntityFramework 4.0

 

object_context_interface[1]