public DAppRepository(IMarketplaceDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _dAppOffers = database.GetCollection <DAppOffer>(settings.DAppOfferCollectionName); }
public ProductService(IMarketplaceDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _product = database.GetCollection <Product>(settings.ProductCollectionName); }