public virtual ApiPipelineStatusServerRequestModel MapServerResponseToRequest(
            ApiPipelineStatusServerResponseModel response)
        {
            var request = new ApiPipelineStatusServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Exemplo n.º 2
0
        public void MapModelToEntity()
        {
            var mapper = new DALPipelineStatusMapper();
            ApiPipelineStatusServerRequestModel model = new ApiPipelineStatusServerRequestModel();

            model.SetProperties("A");
            PipelineStatus response = mapper.MapModelToEntity(1, model);

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