Пример #1
0
        public virtual ApiPipelineStatusResponseModel MapBOToModel(
            BOPipelineStatus boPipelineStatus)
        {
            var model = new ApiPipelineStatusResponseModel();

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

            return(model);
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiPipelineStatusModelMapper();
            var model  = new ApiPipelineStatusResponseModel();

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

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