Exemplo n.º 1
0
        /// <summary>
        /// Gets the ranged discount value.
        /// </summary>
        /// <param name="count">The count.</param>
        /// <returns></returns>
        public int RangedDiscountValue(int count)
        {
            var range = Ranges.FindRangeForValue(count);

            return(range != null ? range.PriceInCents : DiscountValue);
        }