Exemplo n.º 1
0
        public void ScenarioFutureTest()
        {
            //define test input and output values
            decimal expectedResult = 500;
            IEnumerable <CartSKU>   purchasedSKUs    = GetPurchasedSKUs(ScenarioFuture);
            IEnumerable <Promotion> activePromotions = GetActivePromotions();

            PromotionEngine systemUnderTest = new PromotionEngine();
            decimal         actualResult    = systemUnderTest.CalculateTotal(purchasedSKUs, activePromotions);

            //verify the result
            Assert.AreEqual(expectedResult, actualResult);
        }