public override decimal CalculateTotalPrice() { var currentState = (Enums.States)Enum.Parse(typeof(Enums.States), ClientPurchaseInfo.ShippingInfo.State); _salesTax = _salesTaxCalculationService.Calculate(ItemsPrice, currentState, ClientPurchaseInfo.ShippingInfo.Zip); return(OrderPurchaseStrategy.CalculateTotalPrice() + _salesTax); }
public override decimal CalculateTotalPrice() { var currentCountry = (Countries)Enum.Parse(typeof(Countries), ClientPurchaseInfo.BillingInfo.Country); _vatTax = _vatTaxCalculationService.Calculate(ItemsPrice, currentCountry); return(OrderPurchaseStrategy.CalculateTotalPrice() + _vatTax); }
public override decimal CalculateTotalPrice() { _giftWrapPrice = _giftWrappingPriceCalculationService.Calculate(ClientPurchaseInfo.GiftWrapping); return(OrderPurchaseStrategy.CalculateTotalPrice() + _giftWrapPrice); }
public override decimal CalculateTotalPrice() { ValidateOrderStrategy(); return(OrderPurchaseStrategy.CalculateTotalPrice()); }