static void Main(string[] args) { var obj1 = new DifficultObjectA(); var obj2 = new DifficultObjectB(); var facade = new Facade(obj1, obj2); facade.Operate(); Console.ReadLine(); }
private static void FacadeTest() { Console.WriteLine("Test facade"); var obj1 = new DifficultObjectA(); var obj2 = new DifficultObjectB(); var facade = new Facade(obj1, obj2); facade.Operate(); Console.WriteLine(); Console.WriteLine(); }
public Facade(DifficultObjectA object1, DifficultObjectB object2) { _objectA = object1; _objectB = object2; }