Пример #1
0
        public static void Run()
        {
            Subsystem1 subsystem1 = new Subsystem1();
            Subsystem2 subsystem2 = new Subsystem2();
            Facade     facade     = new Facade(subsystem1, subsystem2);

            Console.Write(facade.Operation());
        }
Пример #2
0
 public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2)
 {
     this.subsystem1 = subsystem1;
     this.subsystem2 = subsystem2;
 }