public Checkout(ICatalogue catalogue, IDiscounts discounts) { _subtotal = new Price(); _scannedItems = new Collection <IPurchaseable>(); _itemCatalogue = catalogue; _discounts = discounts; }
public decimal CalculateTotalBill(IDiscounts discounts) { decimal total = _items.Sum(item => item.GetPrice()); decimal discount = discounts.GetDiscount(_items); return total - discount; }
public BusinessLogic(IProcessedData processedData, IFees fees, IDiscounts discounts) { _processedData = processedData; _fees = fees; _discounts = discounts; }
public ChocolateFactory(IDiscounts discountsRealisation) { this.discountsRealisation = discountsRealisation; }
public DiscountsController(IDiscounts discountsRepositorio) { _discountRepositorio = discountsRepositorio; }
public CartsController(ICarts carts, IArticles articles, IDiscounts discounts) { _carts = carts; _articles = articles; _discounts = discounts; }