/// <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; }
public void Setup() { _discountInvoker = new DiscountInvoker(); }
/// <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; }