public CachedMongoStorage( MongoCollection <TModel> collection, IInmemoryCollection <TModel, TKey> inmemoryCollection ) { _storage = new MongoStorage <TModel, TKey>(collection); _inmemoryCollection = inmemoryCollection; }
public CachedMongoStorage( IMongoCollection <TModel> collection, IInmemoryCollection <TModel, TKey> inmemoryCollection ) { _storage = new MongoStorage <TModel, TKey>(collection); _inmemoryCollection = inmemoryCollection; _indexes = new IndexCollection(_inmemoryCollection); }
public IndexCollection(IInmemoryCollection <TModel, TKey> collection) { _collection = collection; }
public void SetUp() { _context = new RebuildContext(false); _inmemoryCollection = _context.GetCollection <SampleReadModelWithStringKey, string>("sample", false); }