Ejemplo n.º 1
0
        public void Execute()
        {
            _state = _cart.CurrentState.Clone();

            var discount = new ProductDiscount(_product, _percentValue);

            _cart.AddDiscount(discount, _product);
        }
Ejemplo n.º 2
0
 public void Execute()
 {
     _state = _cart.CurrentState.Clone();
     _cart.AddDiscount(new CartDiscount(_discountPercent));
 }