public void ApplyPromoCode(PromotionBase promo, Order order)
        {
            double cartItemPrice = promo.PromotionRule(promo, order);

            billTotal += cartItemPrice;
            //Console.WriteLine("Item: " + order.CatalogItem.Name + "\t" + "Discounted Price: " + cartItemPrice);
        }
        public override double PromotionRule(PromotionBase promo, Order order)
        {
            int    quantity        = order.Quantity;
            double price           = order.CatalogItem.Price;
            double finalOrderPrice = 0.0;

            int    remainder     = quantity % order.CatalogItem.Coupon.Quantity;
            int    quotient      = quantity / order.CatalogItem.Coupon.Quantity;
            double discountPrice = order.CatalogItem.Coupon.ComboDiscount;

            finalOrderPrice = finalOrderPrice + (quotient * discountPrice / 2) + remainder * price;

            return(finalOrderPrice);
        }
 public virtual double PromotionRule(PromotionBase promo, Order order)
 {
     return(0.0);
 }