Example #1
0
        static void Main(string[] args)
        {
            IConsole  console = new RealConsole();
            ProgramUI ui      = new ProgramUI();

            ui.Run();
        }
        static void Main(string[] args)
        {
            IConsole  console = new RealConsole();
            ProgramUI ui      = new ProgramUI(console);

            ui.Run();
            //changing ProgramUi to run with Program UI or MockConsole
        }