コード例 #1
0
        private static void TestesEmprestimo()
        {
            var emprestimo2 = new Emprestimo("xyz");

            emprestimo2.Prazo = 3;
            emprestimo2.Prazo = 7;
            emprestimo2.CalcularJuros(6000, 3);
            emprestimo2.CalcularJuros(8500, 6);
            emprestimo2.CalcularJuros(11500, 4);
        }
コード例 #2
0
        private static void XXMain(string[] args)
        {
            //ContaBancaria conta = new ContaBancaria(100);
            //conta.SacarDinheiro(35);
            //conta.SacarDinheiro(150);

            var emprestimo = new Emprestimo("A1234");

            emprestimo.OnPrazoMaximoEstourado += Emprestimo_OnPrazoMaximoEstourado;
            emprestimo.Prazo = 3;
            emprestimo.Prazo = 7;
            emprestimo.CalcularJuros(6000, 3);
            emprestimo.CalcularJuros(8500, 6);
            emprestimo.CalcularJuros(11500, 4);

            emprestimo.Finalizar();
        }