public static void Main(string[] args) { IAirConditionerTesterSystemData data = new AirConditionerTesterSystemData(); IController controller = new Controller(data); IDispatcher dispatcher = new Dispatcher(controller); ILogger logger = new ConsoleLogger(); IEngine engine = new Engine(dispatcher, logger); engine.Run(); }
public static void Main() { IAirConditionerTesterSystemData data = new AirConditionerTesterSystemData(); IController controller = new Controller(data); IDispatcher dispatcher = new Dispatcher(controller); IUserInterface userInterface = new ConsoleUserInterface(); IEngine engine = new AirConditionerTesterSystemEngine(dispatcher, userInterface); engine.Run(); }