public virtual ApiSpaceSpaceFeatureServerRequestModel MapServerResponseToRequest( ApiSpaceSpaceFeatureServerResponseModel response) { var request = new ApiSpaceSpaceFeatureServerRequestModel(); request.SetProperties( response.SpaceFeatureId, response.SpaceId); return(request); }
public void MapModelToEntity() { var mapper = new DALSpaceSpaceFeatureMapper(); ApiSpaceSpaceFeatureServerRequestModel model = new ApiSpaceSpaceFeatureServerRequestModel(); model.SetProperties(1, 1); SpaceSpaceFeature response = mapper.MapModelToEntity(1, model); response.SpaceFeatureId.Should().Be(1); response.SpaceId.Should().Be(1); }