示例#1
0
        static void Main(string[] args)
        {
            List <Boleto> listaDeBoletos = new List <Boleto>
            {
                new Boleto(150.75),
                new Boleto(300),
            };
            Fatura fatura = new Fatura("Victor", 450.75);
            ProcessadorDeBoletos procBoleto = new ProcessadorDeBoletos();

            procBoleto.Processa(listaDeBoletos, fatura);

            Console.WriteLine(fatura.Pago);
            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            List <Boleto> boletos = new List <Boleto>();

            boletos.Add(new Boleto(200));
            boletos.Add(new Boleto(200));
            boletos.Add(new Boleto(200));

            Fatura fatura = new Fatura("Caelum", 900);

            ProcessadorDeBoletos pdb = new ProcessadorDeBoletos();

            pdb.Processa(boletos, fatura);

            Console.WriteLine(fatura.Pago);
            Console.ReadLine();
        }
示例#3
0
        static void Main(string[] args)
        {
            Fatura         fatura  = new Fatura("Rodrigo", 500);
            IList <Boleto> boletos = new List <Boleto>()
            {
                new Boleto(100),
                new Boleto(100),
                new Boleto(100),
                new Boleto(100),
                new Boleto(100)
            };

            ProcessadorDeBoletos processador = new ProcessadorDeBoletos();

            processador.Processa(boletos, fatura);

            Console.WriteLine(fatura.Pago);
        }