public virtual ApiUnitDispositionServerRequestModel MapServerResponseToRequest(
            ApiUnitDispositionServerResponseModel response)
        {
            var request = new ApiUnitDispositionServerRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
示例#2
0
        public void MapModelToEntity()
        {
            var mapper = new DALUnitDispositionMapper();
            ApiUnitDispositionServerRequestModel model = new ApiUnitDispositionServerRequestModel();

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

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