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