コード例 #1
0
        //scenation A - 3 * A = 130 ;5 * B = 45 + 45 + 30 ;1 * C ;1 * D = 30
        public void TestPromoCodeScenarioC()
        {
            decimal totalBillAmount = 0;

            promotionEngineObj = new PromotionEngine();
            var inputData         = CartData.PreparePromotionData2();
            var promotionCodeData = CartData.PreparePromotionCodeData();

            totalBillAmount = promotionEngineObj.ApplyPromotionCode(inputData.CartItems, promotionCodeData);

            Assert.AreEqual(280, totalBillAmount);
        }