
Unit testing MongoDB in C# part 2: the database context
Hi All! Last time I rambled a little bit about TDD and how to implement a very simple MongoDB repository. This time I want to introduce you to my cool friend, DbContext. The basic idea is to have an interface exposing all the collection on your db, or, in our case,...
2015, Dec 20 — 4 minute read