public void MediatorTest() { ConcreteMediator concreteMediator = new ConcreteMediator(); Action <Intent> action = x => _logger.Debug("mediator", x.EventMessage); concreteMediator.AddColleague("testA", new ColleagueDelegate(action)); concreteMediator.AddColleague("testB", new ColleagueDelegate(action)); concreteMediator.Trigger("testA", "test"); concreteMediator.Execute(new Intent("aaaaaaaaaaa")); }