public async void GetTimeEstimate_ForInvalidDefaultParameters_ReturnsEmptyList() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.GetTimeEstimateAsync( TestLocations.SouthPoleLatitude, TestLocations.SouthPoleLongitude); Assert.NotNull(response); Assert.NotNull(response.Data); Assert.IsType <TimeEstimateCollection>(response.Data); Assert.NotNull(response.Data.TimeEstimates); Assert.Empty(response.Data.TimeEstimates); }
public async void GetTimeEstimate_ForValidDefaultParameters_ReturnsListOfPriceEstimates() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.GetTimeEstimateAsync( TestLocations.WhiteHouseLatitude, TestLocations.WhiteHouseLongitude); Assert.NotNull(response); Assert.NotNull(response.Data); Assert.IsType <TimeEstimateCollection>(response.Data); Assert.NotNull(response.Data.TimeEstimates); Assert.NotEmpty(response.Data.TimeEstimates); Assert.NotNull(response.Data.TimeEstimates[0].ProductId); Assert.NotEmpty(response.Data.TimeEstimates[0].ProductId); }