Esempio n. 1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Before:");
            var beforePrinter = new Before.ReportPrinter();
            beforePrinter.PrintReport();

            Console.WriteLine("After:");
            var afterPrinter = new After.ReportPrinter(new After.DataFetcher(), new After.DocumentFormatter());
            afterPrinter.PrintReport();
        }
Esempio n. 2
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Before:");
            var beforePrinter = new Before.ReportPrinter();

            beforePrinter.PrintReport();

            Console.WriteLine("After:");
            var afterPrinter = new After.ReportPrinter(new After.DataFetcher(), new After.DocumentFormatter());

            afterPrinter.PrintReport();
        }