Exemple #1
0
        public void IsSumThe_Same_With_Dummy_Discounter_Return_Value_For_10_Percentage_Discount()
        {
            //Arrange
            IDiscountCalculator calc     = GetDiscounter(10);
            LinqValueCalculator linqCalc = new LinqValueCalculator(calc);


            //Act
            decimal finalPrice = linqCalc.GetTotalValueOfProducts(_products);

            //Assert
            Assert.AreEqual(72, finalPrice);
        }
Exemple #2
0
        public void IsSumThe_Same_With_Dummy_Discounter()
        {
            //Arrange
            IDiscountCalculator calc     = GetDiscounter(0);
            LinqValueCalculator linqCalc = new LinqValueCalculator(calc);


            //Act
            decimal finalPrice = linqCalc.GetTotalValueOfProducts(_products);

            //Assert
            Assert.AreEqual(80, finalPrice);
        }