Beispiel #1
0
        protected override void DoSetUp()
        {
            RebusLoggerFactory.Current = new ConsoleLoggerFactory(true) {MinLevel = LogLevel.Info};

            receiveMessages = new MessageReceiverForTesting(new JsonMessageSerializer());
            handlerActivatorForTesting = new HandlerActivatorForTesting();

            unitOfWorkManager = new UnitOfWorkManagerForTesting();
            worker = CreateWorker(receiveMessages, handlerActivatorForTesting,
                                  unitOfWorkManagers: new IUnitOfWorkManager[] {unitOfWorkManager},
                                  errorTracker: new ErrorTracker("error") {MaxRetries = 1});
        }
        protected override void DoSetUp()
        {
            receiveMessages = new MessageReceiverForTesting(new JsonMessageSerializer());
            handlerActivatorForTesting = new HandlerActivatorForTesting();

            unitOfWorkManager = new UnitOfWorkManagerForTesting();
            worker = new Worker(new ErrorTracker("error") {MaxRetries = 1},
                                receiveMessages,
                                handlerActivatorForTesting,
                                new InMemorySubscriptionStorage(),
                                new JsonMessageSerializer(),
                                new InMemorySagaPersister(),
                                new TrivialPipelineInspector(), "Just some test worker",
                                new DeferredMessageHandlerForTesting(),
                                new IncomingMessageMutatorPipelineForTesting(),
                                null,
                                new IUnitOfWorkManager[] {unitOfWorkManager});
        }
        protected override void DoSetUp()
        {
            receiveMessages = new MessageReceiverForTesting(new JsonMessageSerializer());
            handlerActivatorForTesting = new HandlerActivatorForTesting();

            unitOfWorkManager = new UnitOfWorkManagerForTesting();
            worker = CreateWorker(receiveMessages, handlerActivatorForTesting,
                                  unitOfWorkManagers: new IUnitOfWorkManager[] {unitOfWorkManager},
                                  errorTracker: new ErrorTracker("error") {MaxRetries = 1});
        }