Esempio n. 1
0
        public MongoMockRepository()
        {
            MockBuilder.ResetBags();

            var conn = MongoInMemory.GetConnectionString(Guid.NewGuid().ToString());
            var db   = (TDataContext)Activator.CreateInstance(typeof(TDataContext), conn);

            _db = db;
        }
Esempio n. 2
0
        public BaseMongoContext GetDb()
        {
            var conn = MongoInMemory.GetConnectionString(Guid.NewGuid().ToString());

            return(new Db(conn));
        }