private static bool VerifyAction <T>(Action <T> a, Expression <Predicate <T> > exp) where T : IMessage { var test = exp.Compile().Invoke(MessageCreator.CreateMessage(a)); return(test); }
public static void Handle <T>(this IHandleMessages <T> handler, Action <T> a2) where T : IMessage { handler.Handle(MessageCreator.CreateMessage(a2)); }