Exemplo n.º 1
0
        public void BonusPriceStrategyCorrectPrice()
        {
            IPriceStrategy bonusPriceStrategy = new BonusPriceStrategy(multiplicator: 3, daysForActivityBonus: 1);

            Assert.AreEqual(30, bonusPriceStrategy.computePrice(10));
        }
Exemplo n.º 2
0
        public void BonusPriceStrategyCorrectBonusesForMoreThanOneDays()
        {
            IPriceStrategy bonusPriceStrategy = new BonusPriceStrategy(multiplicator: 3, daysForActivityBonus: 1);

            Assert.AreEqual(1, bonusPriceStrategy.getBonusPoints(2));
        }