public static void Run() { Subsystem1 s1 = new Subsystem1(); Subsystem2 s2 = new Subsystem2(); Facade facade = new Facade(s1, s2); System.Console.WriteLine(facade.Operation()); }
static void Main(string[] args) { FacadeClient client = new FacadeClient(); 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; }
public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2) { this._subsystem1 = subsystem1; this._subsystem2 = subsystem2; }