Example #1
0
        public ConsumerBuilder()
        {
            _unitOfWorkFactory = new HandlerUnitOfWorkFactoryStub(null);

            var messageStub = new MessageResultBuilder().Build();

            _consumerScopeFactory = _ => new ConsumerScopeFactoryStub(new ConsumerScopeStub(messageStub));
            _registry             = new MessageHandlerRegistry();
        }
Example #2
0
        public ConsumerBuilder()
        {
            _unitOfWorkFactory = new HandlerUnitOfWorkFactoryStub(null);

            var messageStub = new MessageResultBuilder().Build();

            _topicSubscriberScopeFactory = new TopicSubscriberScopeFactoryStub(new TopicSubscriberScopeStub(messageStub));

            _messageRegistrations = new MessageRegistration[0];
        }