/// <summary>
 /// Create a new test receiver with a test context, queue name and expressions
 /// </summary>
 public TestMessageReceiver(TestBusContext context, string queueName, IEnumerable <string> topicExpressions)
 {
     Context      = context;
     QueueName    = queueName;
     TopicFilters = topicExpressions;
     Logger       = MiffyLoggerFactory.CreateInstance <TestMessageReceiver>();
 }
Esempio n. 2
0
 /// <summary>
 /// Testbuscontext to send the message to
 /// </summary>
 public TestMessageSender(TestBusContext context)
 {
     _context = context;
     _logger  = MiffyLoggerFactory.CreateInstance <TestMessageSender>();
 }
 /// <summary>
 /// Initialize a receiver with a context and queue name
 /// </summary>
 public TestCommandReceiver(TestBusContext context, string queueName)
 {
     Context   = context;
     QueueName = queueName;
     Logger    = MiffyLoggerFactory.CreateInstance <TestCommandReceiver>();
 }
 /// <summary>
 /// Instantiate a command sender with a context
 /// </summary>
 public TestCommandSender(TestBusContext context)
 {
     Context = context;
 }