コード例 #1
0
 internal ProcessMatcher(ISingleMessageMatcher <T> messageToReturn, IMessageBus actionExecutor, ActionExecutionConfig config, AsserterFactory asserterFactory)
 {
     this.messageToReturn = messageToReturn;
     this.actionExecutor  = actionExecutor;
     this.config          = config;
     this.asserterFactory = asserterFactory;
 }
コード例 #2
0
 public MatchByMessageMatcher(string consumerName, ISingleMessageMatcher <T> matcher) : base(consumerName)
 {
     this.matcher = matcher;
 }
コード例 #3
0
 /// <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));
 }
コード例 #4
0
 public ProcessMatcher <T> Return <T>(ISingleMessageMatcher <T> messageToReturn) where T : class
 {
     return(new ProcessMatcher <T>(messageToReturn, actionExecutor, action, config, asserterFactory));
 }