#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ExecuteCommandExtensions.UseCommandHandler(CommandPipelineBuilder)'
        public static CommandPipelineBuilder UseCommandHandler(
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ExecuteCommandExtensions.UseCommandHandler(CommandPipelineBuilder)'
            this CommandPipelineBuilder builder)
        {
            builder.UseStage(new ExecuteCommandStage(
                                 builder.Services.GetService <CommandTree>()));
            return(builder);
        }
        public void AddPipelineTest()
        {
            var pipelineStage = Mock.Of <IPipelineStage>();

            CommandPipelineBuilder builder = new CommandPipelineBuilder(provider);

            builder.UseStage(pipelineStage);
            var pipeline = builder.Build();

            Assert.Equal(1, pipeline.PipelineStages.Count);
            Assert.Contains(pipelineStage, pipeline.PipelineStages);
        }