Example #1
0
        static void Main(string[] args)
        {
            IInvoicingTarget invoicingTarget = new CustomerAdapter();
            ExternalBillingSystem client = new ExternalBillingSystem(invoicingTarget);
            client.RunInvoicing();

            System.Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            // Sockets Adapter

            //var rectangularPlug = new RectangularPlug("Phase", "Neutral");

            //System.Console.WriteLine(rectangularPlug.GetPowerSupply());

            //****************************************************************

            // ExternalBillingSystem

            IInvoicingTarget invoicingTarget = new CustomerAdapter();
            ExternalBillingSystem client = new ExternalBillingSystem(invoicingTarget);
            client.RunInvoicing();

            //****************************************************************

            System.Console.ReadLine();
        }