public async Task <GourmetSearchResult> FindNearbyRestaurantsAsync(string apiKey, TimeSpan timeout) { GeoCoordinator geoCoordinator = new GeoCoordinator(); var location = geoCoordinator.GetCurrent(timeout); GourmetService gourmetService = new GourmetService(); return(await gourmetService.SearchGourmetInfosAsync(apiKey, location)); }
public async Task SearchShopsAsync() { var gourmetService = new GourmetService(); var actual = await gourmetService.SearchGourmetInfosAsync( Secrets.HotPepperApiKey, new Location { Latitude = 34.67, Longitude = 135.52 }); //Assert.NotNull(actual); //Assert.True(actual.Any()); //Assert.NotNull(actual.First().Name); //Assert.NotNull(actual.First().Genre); //Assert.NotNull(actual.First().Genre); }