public ShippingDecorator(IDokanProduct product) : base(product) { this.decoratorName = "Shipping Decorator"; this.AddOnPrice = _dokanProduct.AddOnPrice + GetShippingCost(); }
protected Decorator(IDokanProduct value) { _dokanProduct = value; this.BaseProductPrice = _dokanProduct.BaseProductPrice; }
public VatDecorator(IDokanProduct product) : base(product) { this.decoratorName = "Vat Decorator"; this.AddOnPrice = _dokanProduct.AddOnPrice + GetVat(); }
public TaxDecorator(IDokanProduct product, double taxPercentage) : base(product) { this.decoratorName = "Tax Decorator"; this.AddOnPrice = _dokanProduct.AddOnPrice + GetTax(_dokanProduct.BaseProductPrice, taxPercentage); }
public DiscountDecorator(IDokanProduct product) : base(product) { this.decoratorName = "Free Decorator"; AddOnPrice = _dokanProduct.AddOnPrice; BaseProductPrice = 0; }