public virtual ApiPipelineStepResponseModel MapBOToModel(
            BOPipelineStep boPipelineStep)
        {
            var model = new ApiPipelineStepResponseModel();

            model.SetProperties(boPipelineStep.Id, boPipelineStep.Name, boPipelineStep.PipelineStepStatusId, boPipelineStep.ShipperId);

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

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

            response.Name.Should().Be("A");
            response.PipelineStepStatusId.Should().Be(1);
            response.ShipperId.Should().Be(1);
        }