title: Mocking Entity Framework Context
body: <p>I'm using the entity framework to access my database and I want to mock the database context inside my unit tests so that I can test my middle tier classes free of their dependency on real data. I know that I'm not the first to ask about this <a href="https://stackoverflow.com/questions/604191/mocking-an-entity-framework-model">(Mocking an Entity Framework Model)</a>, but after some googling I have an instinct that it might be possible to instantiate the context based on the model's metadata alone.</p>
  
  <p>Has anyone been able to do this?</p>