示例#1
0
 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)));
 }