public static void Main() { ConsoleApp1.App app = new ConsoleApp1.App(); app.InitializeComponent(); app.Run(); }
static void Main(string[] args) { IApp app = new App(new MyRailroadLight(), new ConsoleOutput(), new ConsoleInput()); app.Run(); }