예제 #1
0
        static void NoFacadeMode()
        {
            var wifiController  = new NoFacade.WifiController();
            var airController   = new NoFacade.AirConditionerController();
            var lightController = new NoFacade.LightController();

            Console.WriteLine("Arriving home...");
            wifiController.TurnOn();
            airController.TurnOn();
            lightController.TurnOn();
            Console.WriteLine(Environment.NewLine);
            Console.WriteLine("Leaving home...");
            wifiController.TurnOff();
            airController.TurnOff();
            lightController.TurnOff();
            Console.ReadLine();
        }