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(); }