Ejemplo n.º 1
0
 public CheckoutTransaction(ProductCatalog productCatalog, Promotions promotions)
 {
     this._productCatalog = productCatalog;
     _promotions = promotions;
     _items = new List<string>();
     this.Bill = new Bill(_items, _productCatalog, _promotions);
 }
Ejemplo n.º 2
0
 public Bill(IList<string> items, ProductCatalog productCatalog, Promotions promotions)
 {
     _items = items;
     _productCatalog = productCatalog;
     _promotions = promotions;
     CalculateBill();
 }
Ejemplo n.º 3
0
 public LineItem(string barcode, int quantity, ProductCatalog productCatalog, Promotions promotions)
 {
     _productCatalog = productCatalog;
     _promotions = promotions;
     Barcode = barcode;
     Quantity = quantity;
     DiscountNote = "";
     CalculatePriceAndSubTotal();
 }