コード例 #1
0
        public void CanCreateSerivce()
        {
            var svc = new FinanceCalculatorService();

            Assert.IsNotNull(svc);
            Assert.IsInstanceOfType(svc, typeof(FinanceCalculatorService));
        }
コード例 #2
0
        public void PcpLoanRepaymentReturnsLoanRepaymentDetails()
        {
            var svc = new FinanceCalculatorService();

            var result = svc.PcpLoanRepayments(new FinanceData());

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(LoanRepaymentDetails));
        }
コード例 #3
0
        public void CalculateMonthlyRepaymentReturnsString()
        {
            var svc = new FinanceCalculatorService();

            var result = svc.CalculateMonthlyPayment(new FinanceData());

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(string));
        }