Beispiel #1
0
 public GetForTick()
 {
     _deltaApplier = new DeltaApplier(_deltaRepository.Object, _simulationRepository.Object);
     _simulationRepository
     .Setup(x => x.GetSimulationView(It.IsAny <ObjectId>()))
     .Returns(_simulationView);
     _deltaRepository
     .Setup(x => x.GetForSimulation(It.IsAny <ObjectId>(), It.IsAny <int>(), It.IsAny <int>()))
     .Returns(_deltaSet);
 }
Beispiel #2
0
 public Simulator(
     ISectorGenerator sectorGenerator,
     ISimulationRepository simulationRepository,
     IEmpireGenerator empireGenerator,
     IEconomicSimulator economicSimulator,
     IMilitarySimulator militarySimulator,
     IDiplomacySimulator diplomacySimulator,
     IDeltaApplier deltaApplier)
 {
     _sectorGenerator      = sectorGenerator;
     _simulationRepository = simulationRepository;
     _empireGenerator      = empireGenerator;
     _economicSimulator    = economicSimulator;
     _militarySimulator    = militarySimulator;
     _diplomacySimulator   = diplomacySimulator;
     _deltaApplier         = deltaApplier;
 }