public virtual ApiPostHistoryTypesResponseModel MapBOToModel( BOPostHistoryTypes boPostHistoryTypes) { var model = new ApiPostHistoryTypesResponseModel(); model.SetProperties(boPostHistoryTypes.Id, boPostHistoryTypes.Type); return(model); }
public void MapResponseToRequest() { var mapper = new ApiPostHistoryTypesModelMapper(); var model = new ApiPostHistoryTypesResponseModel(); model.SetProperties(1, "A"); ApiPostHistoryTypesRequestModel response = mapper.MapResponseToRequest(model); response.Type.Should().Be("A"); }