public void processa(IList<Boleto> boletos, Fatura fatura) { foreach (Boleto boleto in boletos) { Pagamento pagamento = new Pagamento(boleto.Valor, MeioDePagamento.BOLETO); fatura.Pagamentos.Add(pagamento); } }
public void processa(IList <Boleto> boletos, Fatura fatura) { foreach (Boleto boleto in boletos) { Pagamento pagamento = new Pagamento(boleto.Valor, MeioDePagamento.BOLETO); fatura.Pagamentos.Add(pagamento); } }