public async Task CanCustomGeocodePolygon(string rootUrl, string relativeUrl, string searchText) { var gateway = new PortalGateway(rootUrl); var customGeocode = new SingleInputCustomGeocode(relativeUrl) { Text = searchText }; var response = await IntegrationTestFixture.TestPolicy.ExecuteAsync(() => { return(gateway.CustomGeocode <Polygon>(customGeocode)); }); Assert.Null(response.Error); Assert.NotNull(response.Candidates); Assert.True(response.Candidates.Any()); Assert.NotNull(response.Candidates.FirstOrDefault().Location); }