public async Task Region_GetAllRegions_ShouldHaveValue() { var apiClient = new PinballMapApiClient(); apiClient.Log = x => System.Diagnostics.Debug.WriteLine($"{x}"); var regions = await apiClient.GetAllRegionsAsync(); Assert.NotNull(regions); Assert.True(regions.IsSuccessfulWithResult); Assert.NotEmpty(regions.Result.Regions); }
public async Task Location_GetAllLocations_ShouldHaveValue() { var apiClient = new PinballMapApiClient(); apiClient.Log = x => System.Diagnostics.Debug.WriteLine($"{x}"); apiClient.IncludeFullResponse = true; var locations = await apiClient.GetLocationsClosestByAddress("chicago", true, 5); Assert.NotNull(locations); Assert.True(locations.IsSuccessfulWithResult); Assert.NotEmpty(locations.Result.Locations); }