Beispiel #1
0
        static void Main(string[] args)
        {
            InvoicePrinter invoiceprinter = new InvoicePrinter(new Invoice(101, "ABC", 4500
                                                                           , 0.3, 0.18));

            invoiceprinter.Print();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("-----------SRP Solution-------------\n");
            Invoice        invoice = new Invoice(101, "Printer", 30000, 15, 18);
            InvoicePrinter printer = new InvoicePrinter(invoice);

            printer.PrintToConsole();
        }