public virtual ApiProductModelIllustrationResponseModel MapBOToModel(
            BOProductModelIllustration boProductModelIllustration)
        {
            var model = new ApiProductModelIllustrationResponseModel();

            model.SetProperties(boProductModelIllustration.ProductModelID, boProductModelIllustration.IllustrationID, boProductModelIllustration.ModifiedDate);

            return(model);
        }
Пример #2
0
        public void MapResponseToRequest()
        {
            var mapper = new ApiProductModelIllustrationModelMapper();
            var model  = new ApiProductModelIllustrationResponseModel();

            model.SetProperties(1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"));
            ApiProductModelIllustrationRequestModel response = mapper.MapResponseToRequest(model);

            response.IllustrationID.Should().Be(1);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }