public float GetInBasketPrice(IItemPriceCalculationService priceCalculationService) { return(Items.Where(i => i.IsInBasket && !i.IsTemporary).Sum(i => i.GetTotalPrice(priceCalculationService))); }
public float GetTotalPrice(IItemPriceCalculationService priceCalculationService) { return(priceCalculationService.CalculatePrice(QuantityType.Id, PricePerQuantity, Quantity)); }
public float GetInBasketPrice(IItemPriceCalculationService priceCalculationService) { return(Sections.Sum(s => s.GetInBasketPrice(priceCalculationService))); }