Ejemplo n.º 1
0
        /// <summary>
        /// Gets the Basket totals.
        /// </summary>
        /// <returns>The <see cref="BasketResult"/>.</returns>
        public BasketResult GetTotals()
        {
            var result = _basketCalculator.Calculate(BasketItems);

            if (_logger != null)
            {
                LogTotals(result);
            }

            return(result);
        }