static void Main(string[] args)
        {
            var service = new MessagePrintingService();

            service.PrintMessage();
            Console.ReadKey();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var service = new MessagePrintingService();

            service.PrintMessage();
            Console.WriteLine("Press a key to continue...");
            Console.ReadKey();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            IMessagePrinter service = new MessagePrintingService();

            service.PrintMessage("Hello World");
        }