Example #1
0
        public void GetDiscount(string rule, int amount)
        {
            string currentRule = Convert.ToString(calculateDiscount.Rule(rule));

            discountValue = calculateDiscount.Calculate(amount);
            Console.WriteLine($"The discount is {discountValue}");
        }