private ProductDescriptionAction(IProductDescriptionAction nextAction) => _nextAction = nextAction;
示例#2
0
 public ToppingsProductDescriptionAction(IDelayedFormatText formatText, IProductDescriptionAction nextAction)
 {
     _formatText = formatText;
     _nextAction = nextAction;
 }
 public PizzaDescription(IProductDescriptionAction productDescriptionAction, IToppings toppings)
 {
     _productDescriptionAction = productDescriptionAction;
     _toppings = toppings;
 }
示例#4
0
 public ToppingsProductDescriptionAction(IText type, IProductDescriptionAction nextAction) :
     this(new DelayedFormatText(MultipleToppingsFormat, type), nextAction)
 {
 }