Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductProcessor"/> class.
 /// </summary>
 /// <param name="discountInvoker">The discount invoker.</param>
 public ProductProcessor(IDiscountInvoker discountInvoker)
 {
     this._discountInvoker = discountInvoker;
 }
Exemplo n.º 2
0
 public void Setup()
 {
     _discountInvoker = new DiscountInvoker();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserProcesser"/> class.
 /// </summary>
 /// <param name="order">The order.</param>
 /// <param name="discountInvoker">The discount invoker.</param>
 public UserProcesser(IOrder order, IDiscountInvoker discountInvoker)
 {
     this._order           = order;
     this._discountInvoker = discountInvoker;
 }