I make use of Mongo2Go to create an in-memory mongodb database to write integration tests. My code looks as follows:
protected IMongoDbContext dbContext;