public void CompoundInterestReturnsCorrect()
        {
            var result   = _strategy.CompoundInterest(1500, 0.043);
            var expected = ExpectedResult(1500, 0.043);

            Assert.AreEqual(expected, result);
        }
Beispiel #2
0
 private decimal GetCompoundInterest(decimal principal, double rate)
 {
     try
     {
         return(_compoundStrategy.CompoundInterest(principal, rate));
     }
     catch (Exception)
     {
         throw new ApplicationException("An eror occured calculating compounded monthly interest");
     }
 }