public ConsumerDispatcherFactoryTests() { var parser = new ConnectionStringParser(); var configuration = parser.Parse("host=localhost"); dispatcherFactory = new ConsumerDispatcherFactory(); }
public InternalConsumerFactory( IHandlerRunner handlerRunner, IConsumerDispatcherFactory consumerDispatcherFactory) { this.handlerRunner = handlerRunner; this.consumerDispatcherFactory = consumerDispatcherFactory; }
public void SetUp() { var parser = new ConnectionStringParser(); var configuration = parser.Parse("host=localhost"); logger = MockRepository.GenerateStub<IEasyNetQLogger>(); dispatcherFactory = new ConsumerDispatcherFactory(configuration, logger); }
public void SetUp() { var parser = new ConnectionStringParser(); var configuration = parser.Parse("host=localhost"); logger = MockRepository.GenerateStub <IEasyNetQLogger>(); dispatcherFactory = new ConsumerDispatcherFactory(configuration, logger); }
public ConsumerDispatcherFactoryTests() { var parser = new ConnectionStringParser(); var configuration = parser.Parse("host=localhost"); logger = Substitute.For <IEasyNetQLogger>(); dispatcherFactory = new ConsumerDispatcherFactory(configuration, logger); }
public InternalConsumerFactory( IHandlerRunner handlerRunner, IConventions conventions, IConsumerDispatcherFactory consumerDispatcherFactory, IEventBus eventBus) { Preconditions.CheckNotNull(handlerRunner, "handlerRunner"); Preconditions.CheckNotNull(conventions, "conventions"); Preconditions.CheckNotNull(consumerDispatcherFactory, "consumerDispatcherFactory"); this.handlerRunner = handlerRunner; this.conventions = conventions; this.consumerDispatcherFactory = consumerDispatcherFactory; this.eventBus = eventBus; }
public InternalConsumerFactory( IHandlerRunner handlerRunner, IEasyNetQLogger logger, IConventions conventions, IConnectionConfiguration connectionConfiguration, IConsumerDispatcherFactory consumerDispatcherFactory) { Preconditions.CheckNotNull(handlerRunner, "handlerRunner"); Preconditions.CheckNotNull(logger, "logger"); Preconditions.CheckNotNull(conventions, "conventions"); Preconditions.CheckNotNull(connectionConfiguration, "connectionConfiguration"); Preconditions.CheckNotNull(consumerDispatcherFactory, "consumerDispatcherFactory"); this.handlerRunner = handlerRunner; this.logger = logger; this.conventions = conventions; this.connectionConfiguration = connectionConfiguration; this.consumerDispatcherFactory = consumerDispatcherFactory; }
public InternalConsumerFactory( IHandlerRunner handlerRunner, IEasyNetQLogger logger, IConventions conventions, IConnectionConfiguration connectionConfiguration, IConsumerDispatcherFactory consumerDispatcherFactory) { Preconditions.CheckNotNull(handlerRunner, "handlerRunner"); Preconditions.CheckNotNull(logger, "logger"); Preconditions.CheckNotNull(conventions, "conventions"); Preconditions.CheckNotNull(connectionConfiguration, "connectionConfiguration"); Preconditions.CheckNotNull(consumerDispatcherFactory, "consumerDispatcherFactory"); this.handlerRunner = handlerRunner; this.logger = logger; this.conventions = conventions; this.connectionConfiguration = connectionConfiguration; this.consumerDispatcherFactory = consumerDispatcherFactory; }
public void SetUp() { logger = MockRepository.GenerateStub<IEasyNetQLogger>(); dispatcherFactory = new ConsumerDispatcherFactory(logger); }
public void SetUp() { logger = MockRepository.GenerateStub <IEasyNetQLogger>(); dispatcherFactory = new ConsumerDispatcherFactory(logger); }