public void Order(Cart cart, PaymentDetails paymentDetails, INotifyCustomer notifyCustomer, IReserveInventory reserveInventory, IPaymentProcessor paymentProcessor) { _cart = cart; _paymentDetails = paymentDetails; _notifyCustomer = notifyCustomer; _reserveInventory = reserveInventory; _paymentProcessor = paymentProcessor; }
public HiddenDependencies(INotifyCustomer notificationService) { this._notificationService = notificationService; }
//By Strategy Pattern public Order(Cart cart, PaymentDetails paymentDetails, INotifyCustomer notifyCustomer) { this._cart = cart; this._paymentDetails = paymentDetails; this._notifyCustomer = notifyCustomer; }
public CreditCardSales(Cart cart, PaymentDetails paymentDetails, INotifyCustomer notifyCustomer, IReserveInventory reserveInventory, IPaymentProcessor paymentProcessor) : base(cart, paymentDetails, notifyCustomer, reserveInventory, paymentProcessor) { }