示例#1
0
        public void ProcessoContrato(Contrato contrato, int meses)
        {
            double valor = contrato.ValorTotal / meses;


            for (int i = 1; i <= meses; i++)
            {
                double   valor1     = _servicoPagamento.Interesse(valor, i);
                DateTime dt         = contrato.Data.AddMonths(i);
                double   valorTotal = _servicoPagamento.TaxaDePagament(valor1);
                contrato.AddPrestacao(new Prestacao(dt, valorTotal));
            }
        }