public ApplicationPipelineConfigurarTests()
        {
            var services = new ServiceCollection()
                           .AddSingleton(new Mock <IWebHostEnvironment>().Object)
                           .AddSingleton(new Mock <IDummyService>().Object);

            _sut      = new ApplicationPipelineConfigurar(services);
            _pipeline = new AspNetApplicationPipeline();
            _step1    = new ApplicationPipelineStep("step-1", app => { });
            _step2    = new ApplicationPipelineStep("step-2", app => { });
        }
 public IApplicationPipelineConfigurar AddAfter(string key, IApplicationPipelineStep step)
 {
     _pipelineSetup += (services, pipeline) => pipeline.AddAfter(key, step);
     return(this);
 }
 public IApplicationPipelineConfigurar Add(IApplicationPipelineStep step)
 {
     _pipelineSetup += (sb, pipeline) => pipeline.Add(step);
     return(this);
 }
 public IApplicationPipelineConfigurar Remove(IApplicationPipelineStep step)
 {
     _pipelineSetup += (services, pipeline) => pipeline.Remove(step);;
     return(this);
 }
 public IApplicationPipelineConfigurar AddBefore(string key, IApplicationPipelineStep step)
 {
     _pipelineSetup += (sb, pipeline) => pipeline.AddBefore(key, step);
     return(this);
 }