示例#1
0
        private static void FacadeTest()
        {
            Console.WriteLine("---------------------------");
            Console.WriteLine("FacadeTest");
            var facade = new CarFacade(new Engine(), new Transmission(), new Control());

            facade.Start();
            facade.MoveToHome();
            facade.Stop();

            Console.WriteLine("---------------------------");
        }