public MongoService(IDirectoryDbSettings dbSettings) { var client = new MongoClient(dbSettings.ConnectionString); database = client.GetDatabase(dbSettings.DatabaseName); }
public UserService(IDirectoryDbSettings dbSettings, IMongoService mongoService) { users = mongoService.GetCollection <UserModel>(dbSettings.UserCollectionName); }
public ClientService(IDirectoryDbSettings dbSettings, IMongoService mongoService) { clients = mongoService.GetCollection <ClientModel>(dbSettings.ClientCollectionName); }
public AccountService(IDirectoryDbSettings dbSettings, IMongoService mongoService) { managers = mongoService.GetCollection <ManagerModel>(dbSettings.ManagersCollectionName); }