public PositionMongoRepository(IAccountingDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _positions = database.GetCollection <Position>(settings.PositionsCollectionName); }
public EmployeeMongoRepository(IAccountingDatabaseSettings settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _employees = database.GetCollection <Employee>(settings.EmployeesCollectionName); }