public override void BuyCart()
        {
            Cart promotionCart = this.GetPromotion();
            UpdateInfo();
            decimal totalPrice = promotionCart.CalculateTotalProductsPrice();
            this.information.SpendMoney += totalPrice;
            this.information.BoughtItems += promotionCart.CartList.Length;
            foreach (Product item in this.Cart.CartList)
            {
                this.information.BoughtProducts.Add(item);
            }

            this.Cart.EmptyCart();
            BuyPublisher publisher = new BuyPublisher();
            BuySubscriber subscriber = new BuySubscriber("Subscriber", publisher);
            publisher.Execute(totalPrice);
        }
 public BuySubscriber(string ID, BuyPublisher publisher)
 {
     id = ID;
     publisher.RaiseEvent += HandleEvent;
 }