public async Task SeedAsync() { var dbName = _provider.Configuration.DatabaseName; await _provider.Client.DropDatabaseAsync(dbName); await SeedAsync(_provider.GetCollection <T>(_key)); }
public MongoService(IMongoProvider mongo, string collection) { _collection = mongo.GetCollection <T>(collection); }
public MongoPricingService(IMongoProvider provider) { _pricing = provider.GetCollection <PricingInformation>("Pricing"); }