static void Main(string[] args) { Client client = new Client(); Subsystem1 s1 = new Subsystem1(); Subsystem2 s2 = new Subsystem2(); Facade facade = new Facade(s1, s2); client.ClientCode(facade); }
public Facade(Subsystem1 s1, Subsystem2 s2) { this.Subsystem1 = s1; this.Subsystem2 = s2; }