public virtual ApiPostTypeServerRequestModel MapServerResponseToRequest( ApiPostTypeServerResponseModel response) { var request = new ApiPostTypeServerRequestModel(); request.SetProperties( response.RwType); return(request); }
public void MapModelToEntity() { var mapper = new DALPostTypeMapper(); ApiPostTypeServerRequestModel model = new ApiPostTypeServerRequestModel(); model.SetProperties("A"); PostType response = mapper.MapModelToEntity(1, model); response.RwType.Should().Be("A"); }