public void When_creating_a_control_bus_sender()
        {
            s_sender = s_senderFactory.Create(s_fakeOutbox, s_fakeGateway);

            //_should_create_a_control_bus_sender
            s_sender.Should().NotBeNull();
        }
        public void When_creating_a_control_bus_sender()
        {
            s_sender = s_senderFactory.Create(s_fakeMessageStore, s_fakeGateway);

            //_should_create_a_control_bus_sender
            Assert.NotNull(s_sender);
        }
        public void When_creating_a_control_bus_sender()
        {
            s_sender = s_senderFactory.Create(
                _fakeOutboxSync,
                new ProducerRegistry(new Dictionary <string, IAmAMessageProducer>()
            {
                { "MyTopic", s_fakeGateway },
            }));

            //_should_create_a_control_bus_sender
            s_sender.Should().NotBeNull();
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// Use this instance if you need to inject a logger, for example for testing
 /// </summary>
 /// <param name="controlBusSender">The control bus command processor, to post over</param>
 /// <param name="logger">The logger</param>
 /// <param name="monitorConfiguration"></param>
 public MonitorHandler(IAmAControlBusSender controlBusSender, ILog logger, MonitorConfiguration monitorConfiguration) : base(logger)
 {
     _controlBusSender    = controlBusSender;
     _isMonitoringEnabled = monitorConfiguration.IsMonitoringEnabled;
     _instanceName        = monitorConfiguration.InstanceName;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="controlBusSender">The control bus command processor, to post over</param>
 /// <param name="monitorConfiguration"></param>
 public MonitorHandler(IAmAControlBusSender controlBusSender, MonitorConfiguration monitorConfiguration)
     : this(controlBusSender, LogProvider.For <MonitorHandler <T> >(), monitorConfiguration)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// Use this instance if you need to inject a logger, for example for testing
 /// </summary>
 /// <param name="controlBusSender">The control bus command processor, to post over</param>
 /// <param name="logger">The logger</param>
 public MonitorHandler(IAmAControlBusSender controlBusSender, ILog logger) : base(logger)
 {
     _controlBusSender = controlBusSender;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="controlBusSender">The control bus command processor, to post over</param>
 public MonitorHandler(IAmAControlBusSender controlBusSender)
     : this(controlBusSender, LogProvider.GetCurrentClassLogger())
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestHandler{TRequest}"/> class.
 /// </summary>
 /// <param name="controlBusSender">The control bus command processor, to post over</param>
 public MonitorHandler(IAmAControlBusSender controlBusSender)
     : this(controlBusSender, LogProvider.For <MonitorHandler <T> >())
 {
 }