示例#1
0
        private static Bill GenerateBill(Root config, PriceList priceList, ShoppingCart.ShoppingCart shoppingCart)
        {
            MainOfferHandler mainOfferHandler = new MainOfferHandler(config.GetOffers(), priceList);
            BillGenerator    billGenerator    = new BillGenerator(priceList, mainOfferHandler);
            Bill             bill             = billGenerator.GenerateBill(shoppingCart);

            return(bill);
        }
 public BillGenerator(PriceList priceList, MainOfferHandler mainOfferHandler)
 {
     this._priceList        = priceList;
     this._mainOfferHandler = mainOfferHandler;
 }