Exemplo n.º 1
0
 public void Processa(IList <Boleto> boletos, Fatura fatura)
 {
     foreach (Boleto boleto in boletos)
     {
         Pagamento pagamento = new Pagamento(boleto.Valor, MeioDePagamento.BOLETO);
         fatura.AddPagamento(pagamento);
     }
 }
Exemplo n.º 2
0
        public NotaFiscal Gera(Fatura fatura)
        {
            double valor = fatura.Valor;

            NotaFiscal nf = new NotaFiscal(valor, ImpostoSimplesSobreO(valor));

            Acao?.Executa(nf);

            return(nf);
        }