Ejemplo n.º 1
0
        public virtual ApiPipelineStepStepRequirementResponseModel MapBOToModel(
            BOPipelineStepStepRequirement boPipelineStepStepRequirement)
        {
            var model = new ApiPipelineStepStepRequirementResponseModel();

            model.SetProperties(boPipelineStepStepRequirement.Id, boPipelineStepStepRequirement.Detail, boPipelineStepStepRequirement.PipelineStepId, boPipelineStepStepRequirement.RequirementMet);

            return(model);
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiPipelineStepStepRequirementModelMapper();
            var model  = new ApiPipelineStepStepRequirementResponseModel();

            model.SetProperties(1, "A", 1, true);
            ApiPipelineStepStepRequirementRequestModel response = mapper.MapResponseToRequest(model);

            response.Details.Should().Be("A");
            response.PipelineStepId.Should().Be(1);
            response.RequirementMet.Should().Be(true);
        }