Beispiel #1
0
 public void Order(Cart cart, PaymentDetails paymentDetails, INotifyCustomer notifyCustomer, IReserveInventory reserveInventory, IPaymentProcessor paymentProcessor)
 {
     _cart             = cart;
     _paymentDetails   = paymentDetails;
     _notifyCustomer   = notifyCustomer;
     _reserveInventory = reserveInventory;
     _paymentProcessor = paymentProcessor;
 }
Beispiel #2
0
 public HiddenDependencies(INotifyCustomer notificationService)
 {
     this._notificationService = notificationService;
 }
Beispiel #3
0
 //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)
 {
 }