Beispiel #1
0
        public void Processa(IList <Boleto> boletos, Fatura fatura)
        {
            double total = 0;

            foreach (Boleto boleto in boletos)
            {
                Pagamento pagamento = new Pagamento(boleto.Valor, MeioDePagamento.BOLETO);
                fatura.AdicionaPagamento(pagamento);
            }
        }