Ejemplo n.º 1
0
        public virtual ApiPipelineStepStatusResponseModel MapBOToModel(
            BOPipelineStepStatus boPipelineStepStatus)
        {
            var model = new ApiPipelineStepStatusResponseModel();

            model.SetProperties(boPipelineStepStatus.Id, boPipelineStepStatus.Name);

            return(model);
        }
Ejemplo n.º 2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiPipelineStepStatusModelMapper();
            var model  = new ApiPipelineStepStatusResponseModel();

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

            response.Name.Should().Be("A");
        }