public MongoMockRepository() { MockBuilder.ResetBags(); var conn = MongoInMemory.GetConnectionString(Guid.NewGuid().ToString()); var db = (TDataContext)Activator.CreateInstance(typeof(TDataContext), conn); _db = db; }
public BaseMongoContext GetDb() { var conn = MongoInMemory.GetConnectionString(Guid.NewGuid().ToString()); return(new Db(conn)); }