title: Unit Testing and Entity Framework
body: <p>I am very new to EF, I want to know what is the best way of creating EF with SQL Server database. After that I want to test CRUD operations. Is EF implemented in a TDD way, and I am confused by these repository patterns, mock context, fake pattern etc.. </p>
  
  <p>CRUD operations in EF, what all things would be tested? (<code>DbContext</code>, <code>SaveChanges()</code>... is need to test?)</p>
  
  <p>So any ideas how to do unit testing with Entity Framework based components? (I am checking all these in Visual Studio 2012, ASP.NET MVC4)</p>