public void VisaCalculateInterest_IntegerMonths_Decimal(ICreditCard card, decimal expected) { //ACT var actual = card.CalculateInterest(1); //ASSERT Assert.AreEqual(actual, expected); }
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}$"); }