예제 #1
0
        public void Scenario1()
        {
            Cart cart = new Cart()
            {
                cartItems = new List <CartItem>()
                {
                    new CartItem(_engine.GetSKUs())
                    {
                        skuID = "A", Quantity = 1
                    },
                    new CartItem(_engine.GetSKUs())
                    {
                        skuID = "B", Quantity = 1
                    },
                    new CartItem(_engine.GetSKUs())
                    {
                        skuID = "C", Quantity = 1
                    },
                }
            };

            cart = _engine.RunPromotionEngine(cart);
            Assert.Equal(100, cart.Total);
        }