Пример #1
0
 public Kingdom(ITreasury treasury, IEndTurnCalculator endTurnCalculator, IEconomy economy)
 {
     this.treasury          = treasury;
     this.endTurnCalculator = endTurnCalculator;
     this.economy           = economy;
     Turn = 1;
 }
Пример #2
0
        public void SetUp()
        {
            endTurnSettings = new EndTurnSettings
            {
                FoodConsumptionRate     = 1,
                FoodProductionRate      = 2,
                PeasantGainRate         = .1,
                PeasantLossRate         = .1,
                PeasantIncome           = 7,
                PeasantsPerFarm         = 5,
                TaxRate                 = 7,
                RandomizationMultiplier = .1,
                AvailablePeasants       = 5000
            };

            mockRandomizer    = new Mock <IRandomizer>();
            endTurnCalculator = new EndTurnCalculator(endTurnSettings, mockRandomizer.Object);
        }