예제 #1
0
        static void Main(string[] args)
        {
            var obj1   = new DifficultObjectA();
            var obj2   = new DifficultObjectB();
            var facade = new Facade(obj1, obj2);

            facade.Operate();
            Console.ReadLine();
        }
예제 #2
0
        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();
        }
예제 #3
0
 public Facade(DifficultObjectA object1, DifficultObjectB object2)
 {
     _objectA = object1;
     _objectB = object2;
 }