Exemple #1
0
        public void Execute()
        {
            if (Product is NullProduct)
            {
                return;
            }

            ProductFakeRepository.DecreaseStockById(Product.Id, 1);

            ShoppingCartFakeRepository.Add(Product);
        }
 public void Execute()
 {
     ProductFakeRepository.DecreaseStockById(Product.Id, 1);
     ShoppingCartFakeRepository.IncreaseQuantity(Product.Id);
 }