Beispiel #1
0
 public MapsRepository(
     IMongoDatabase database,
     ITanksSimulatorDbSettings databaseSettings)
 {
     _maps = database.GetCollection <GameMapModel>(databaseSettings.MapsCollection);
 }
 public TanksRepository(
     IMongoDatabase database,
     ITanksSimulatorDbSettings databaseSettings)
 {
     _tanks = database.GetCollection <TankModel>(databaseSettings.TanksCollection);
 }
Beispiel #3
0
 public GameDataRepository(
     IMongoDatabase database,
     ITanksSimulatorDbSettings databaseSettings)
 {
     _gameData = database.GetCollection <GameDataModel>(databaseSettings.GameDataCollection);
 }