public void CanCreateSerivce() { var svc = new FinanceCalculatorService(); Assert.IsNotNull(svc); Assert.IsInstanceOfType(svc, typeof(FinanceCalculatorService)); }
public void PcpLoanRepaymentReturnsLoanRepaymentDetails() { var svc = new FinanceCalculatorService(); var result = svc.PcpLoanRepayments(new FinanceData()); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(LoanRepaymentDetails)); }
public void CalculateMonthlyRepaymentReturnsString() { var svc = new FinanceCalculatorService(); var result = svc.CalculateMonthlyPayment(new FinanceData()); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(string)); }