Ejemplo n.º 1
0
 private IPutPipelineRequest CreateFluent(string pipelineId, PutPipelineDescriptor d) => d
 .Description("Project Pipeline")
 .Processors(ps => ps
             .Uppercase <Project>(u => u
                                  .Field(p => p.State)
                                  )
             .Set <Project>(s => s
                            .Field(p => p.NumberOfCommits)
                            .Value(0)
                            )
             );
Ejemplo n.º 2
0
 private IPutPipelineRequest UpdateFluent(string pipelineId, PutPipelineDescriptor d) => d
 .Description("Project Pipeline (updated)")
 .Processors(ps => ps
             .Uppercase <Project>(u => u
                                  .Field(p => p.State)
                                  )
             .Set <Project>(s => s
                            .Field(p => p.NumberOfCommits)
                            .Value(500)
                            )
             .Rename <Project>(s => s
                               .Field(p => p.LeadDeveloper)
                               .TargetField("techLead")
                               )
             );