예제 #1
0
 public void AddPipelineStepStepRequirement(ApiPipelineStepStepRequirementResponseModel item)
 {
     if (!this.PipelineStepStepRequirements.Any(x => x.Id == item.Id))
     {
         this.PipelineStepStepRequirements.Add(item);
     }
 }
예제 #2
0
        public virtual ApiPipelineStepStepRequirementRequestModel MapResponseToRequest(
            ApiPipelineStepStepRequirementResponseModel response)
        {
            var request = new ApiPipelineStepStepRequirementRequestModel();

            request.SetProperties(
                response.Details,
                response.PipelineStepId,
                response.RequirementMet);
            return(request);
        }
예제 #3
0
        public virtual ApiPipelineStepStepRequirementResponseModel MapRequestToResponse(
            int id,
            ApiPipelineStepStepRequirementRequestModel request)
        {
            var response = new ApiPipelineStepStepRequirementResponseModel();

            response.SetProperties(id,
                                   request.Details,
                                   request.PipelineStepId,
                                   request.RequirementMet);
            return(response);
        }