public void ResponseIsNotNull() { var request = new AutocompleteRequest() { Sensor = false, Input = "London" }; var service = new PlacesService(); AutocompleteResponse response = null; response = service.GetAutocompleteResponse(request); Assert.IsNotNull(response); }
public void ResponseWith_Types_And_Places() { var request = new AutocompleteRequest() { Sensor = false, Input = "SK4 5DA", Regions = true, Components = "UK" }; var service = new PlacesService(); AutocompleteResponse response = null; response = service.GetAutocompleteResponse(request); Assert.IsNotNull(response); Assert.IsTrue(response.Predictions.Length > 0); Assert.IsTrue(response.Status == ServiceResponseStatus.Ok); }