public void CalculateBankInterestTest() { BankCalc bankCalc = new BankCalc(); decimal actualValue = bankCalc.CalcSimpleBankInterestYears(); Assert.AreEqual(10000.0M, actualValue); }
public ActionResult <decimal> GetSimpleInterest(decimal amount = 1000.0M, decimal interest = 1.0M, int years = 10) { BankCalc bankCalc = new BankCalc(); return(bankCalc.CalcSimpleBankInterest(amount, interest, years)); }
public ActionResult <double> GetCompoundInterest(double amount = 1000.0, double interest = 0.0, int years = 10) { BankCalc bankCalc = new BankCalc(); return(bankCalc.CalcCompoundBankInterest(amount, interest, years)); }
public ActionResult <decimal> Get(decimal amount = 1000.0M, int years = 10) { BankCalc bankCalc = new BankCalc(); return(bankCalc.CalculateAmountNoInterest(amount, years)); }