Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
        }