public decimal GetTotalPrice(IPricingEngine pe) { decimal totalPrice = 0; foreach (var item in this.itemsDict) { string sku = item.Key; int totalQuantity = item.Value; totalPrice += pe.GetItemTotalPrice(sku, totalQuantity); } return(totalPrice); }
public decimal GetTotalPrice(IPricingEngine pe) { decimal totalPrice = 0; foreach (var item in this.itemsDict) { string sku = item.Key; int totalQuantity = item.Value; totalPrice += pe.GetItemTotalPrice(sku, totalQuantity); } return totalPrice; }