コード例 #1
0
        public void BonusPriceStrategyCorrectPrice()
        {
            IPriceStrategy bonusPriceStrategy = new BonusPriceStrategy(multiplicator: 3, daysForActivityBonus: 1);

            Assert.AreEqual(30, bonusPriceStrategy.computePrice(10));
        }
コード例 #2
0
        public void BonusPriceStrategyCorrectBonusesForMoreThanOneDays()
        {
            IPriceStrategy bonusPriceStrategy = new BonusPriceStrategy(multiplicator: 3, daysForActivityBonus: 1);

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