예제 #1
0
        public void Test_Demo()
        {
            ConcreteComponentA componentA = new ConcreteComponentA();
            ConcreteComponentB componentB = new ConcreteComponentB();

            IMediator mediator = new ConcreteMediator(componentA, componentB);

            componentA.ExecutingA();
            componentA.ExecutingB();
            componentB.ExecutingA();
            componentB.ExecutingB();
        }