Пример #1
0
        public virtual ApiSpaceFeatureResponseModel MapBOToModel(
            BOSpaceFeature boSpaceFeature)
        {
            var model = new ApiSpaceFeatureResponseModel();

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

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

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

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