public OrderPurchaseStrategyDecorator(DecoratorDesignPattern.Advanced.Strategies.OrderPurchaseStrategy orderPurchaseStrategy, decimal itemsPrice, DecoratorDesignPattern.Data.ClientPurchaseInfo clientPurchaseInfo)
 {
     this.orderPurchaseStrategy = orderPurchaseStrategy;
     this.itemsPrice            = itemsPrice;
     this.clientPurchaseInfo    = clientPurchaseInfo;
 }
Example #2
0
 public PurchaseContext(DecoratorDesignPattern.Advanced.Strategies.OrderPurchaseStrategy orderPurchaseStrategy)
 {
     this.orderPurchaseStrategy = orderPurchaseStrategy;
 }
 public SalesTaxOrderPurchaseStrategy(DecoratorDesignPattern.Advanced.Strategies.OrderPurchaseStrategy orderPurchaseStrategy, decimal itemsPrice, DecoratorDesignPattern.Data.ClientPurchaseInfo clientPurchaseInfo) : base(orderPurchaseStrategy, itemsPrice, clientPurchaseInfo)
 {
     this.salesTaxCalculationService = new SalesTaxCalculationService();
 }