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(); }
/// <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; }
/// <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) { }
/// <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; }
/// <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()) { }
/// <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> >()) { }