public static JobViewModelBuilder From(Project project)
 {
     return new JobViewModelBuilder(project);
 }
        private static PipelineViewModel GetPipeline(Project projectpipe)
        {
            var stages = new List<StageViewModel>();

            var firstStage = new StageViewModel { Jobs = new List<JobViewModel> { JobViewModelBuilder.From(projectpipe).Build() } };
            stages.Add(firstStage);

            var stage = GetNextStage(firstStage.Jobs);
            while (stage != null)
            {
                stages.Add(stage);
                stage = GetNextStage(stage.Jobs);
            }

            return new PipelineViewModel { Stages = stages };
        }
 private JobViewModelBuilder(Project project)
 {
     _project = project;
 }