static void Main(string[] args) { Subsystem1 subsystem1 = new Subsystem1(); Subsystem2 subsystem2 = new Subsystem2(); Subsystem3 subsystem3 = new Subsystem3(); Facade facade = new Facade(subsystem1, subsystem2, subsystem3); Client.ClientCode(facade); Console.Read(); }
public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2, Subsystem3 subsystem3) { this._subsystem1 = subsystem1; this._subsystem2 = subsystem2; this._subsystem3 = subsystem3; }