public async Task ThrowOnUnknownHandler()
        {
            var handlers = new HandlersCollection(typeof(TestHandler1));
            var config   = new InMemoryConfiguration("pipeline", ("0:handler", "unknown"));
            var sut      = new PipelineHandler(config, handlers.HandlerProvider);

            await Assert.ThrowsAsync <HandlerNotFoundException>(() => sut.HandleAsync(RouteContext));
        }
        public void CanDisablePipelineStep()
        {
            var handlers = new HandlersCollection(typeof(TestHandler1), typeof(TestHandler2));
            var config   = new InMemoryConfiguration("pipeline",
                                                     ("0:handler", "test1"),
                                                     ("1:disable", "true"),
                                                     ("1:handler", "test2"));
            var sut = new PipelineHandler(config, handlers.HandlerProvider);

            var expected = TestHandler1.Response;

            var actual = sut.HandleAsync(RouteContext).Result;

            DeepAssert.Equal(expected, actual);
        }