internal ProcessMatcher(ISingleMessageMatcher <T> messageToReturn, IMessageBus actionExecutor, ActionExecutionConfig config, AsserterFactory asserterFactory) { this.messageToReturn = messageToReturn; this.actionExecutor = actionExecutor; this.config = config; this.asserterFactory = asserterFactory; }
public MatchByMessageMatcher(string consumerName, ISingleMessageMatcher <T> matcher) : base(consumerName) { this.matcher = matcher; }
/// <summary> /// Matches when a confirmation is received from the given consumer on the message matched by the given matcher /// </summary> /// <param name="matcher"></param> /// <param name="consumerName"></param> /// <param name="description"></param> /// <returns></returns> public static ConfirmationMatcher <T> Single(ISingleMessageMatcher <T> matcher, string consumerName, string description = "") { return(new ConfirmationMatcher <T>(new MatchByMessageMatcher(consumerName, matcher), consumerName, description)); }
public ProcessMatcher <T> Return <T>(ISingleMessageMatcher <T> messageToReturn) where T : class { return(new ProcessMatcher <T>(messageToReturn, actionExecutor, action, config, asserterFactory)); }