public MetadataIndexViewModel GetMyMetadata(string organizationName, int offset, int limit) { SearchResultsType results = _geoNorge.SearchWithOrganisationName(organizationName, offset, limit, true); return(ParseSearchResults(offset, limit, results)); }
public void ShouldReturnRecordsWhenSearchingWithOrganisationName() { var result = _geonorge.SearchWithOrganisationName("%Kartverket%"); Assert.Greater(int.Parse(result.numberOfRecordsMatched), 0, "An organization name search on '%Kartverket%' should return lots of records."); }