Exemplo n.º 1
0
        private static void ShopWithCreditCard(ICreditCard creditCard, decimal amount)
        {
            Console.WriteLine($"Brand {creditCard.GetBrand()}");
            var holderInformation = creditCard.GetHolderInformation();

            Console.WriteLine($"information:{holderInformation.Name} {holderInformation.Address}");
            var interest = creditCard.CalculateInterest(amount);

            Console.WriteLine($"the interes will be: {interest}$ if you spend {amount}$");
        }