internal FakeJobHandler AddFakeHandler(HandlerConfiguration handlerConfiguration, bool canProcess = true, bool hangOnProcessing = false, bool throwOnProcessing = false)
        {
            var fakeHandler = new FakeJobHandler(handlerConfiguration, canProcess, hangOnProcessing, throwOnProcessing);

            _handlers.Add(fakeHandler.Configuration.QueueId, fakeHandler);

            return(fakeHandler);
        }
Esempio n. 2
0
        public static Fakes.FakeJobHandler AddFakeHandler(
            this JobQueueListener listener,
            HandlerConfiguration handlerConfiguration,
            bool canProcess,
            bool hangOnProcessing  = false,
            bool throwOnProcessing = false)
        {
            var fakeHandler = new Fakes.FakeJobHandler(handlerConfiguration, canProcess, hangOnProcessing, throwOnProcessing);

            listener.AddHandler(fakeHandler);

            return(fakeHandler);
        }