コード例 #1
0
        public void PagaParcelaEmprestimoSucesso()
        {
            PagamentoParcelas pagParcelaEmp = new PagamentoParcelas();

            Transacao emprestimo = new Transacao(new DateTime(), "Empréstimo", 500, 1, 500, 12);

            string retPagEmp = pagParcelaEmp.RealizarPagamento(new BaseDeDados(), 9999, emprestimo);

            Assert.AreEqual("Transação efetuada.", retPagEmp);
        }
コード例 #2
0
        public void RealizaEmprestimoSucesso()
        {
            Emprestimo emprestimo = new Emprestimo();

            string retEmprestimo = emprestimo.RealizarEmprestimo(new Tela(), 9999, new BaseDeDados(), 500, 12);

            Assert.AreEqual("Transação Efetivada.", retEmprestimo);

            PagamentoParcelas pag = new PagamentoParcelas();
        }