Mocking a generic ObjectSet or IObjectSet for Unit Testing Entity Framework Business Logic
Up until this point, I had mostly been using nHibernate for my ORM solution in most applications I work on. So when I started diving into Entity Framework (EF) models and trying to write unit tests against logic that lives in EF entities, I first encountered the ObjectSet<T> type. Now to be clear, I was not [...]