public async void GetPriceEstimate_ForInvalidParameters_ReturnsEmptyList() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.GetPriceEstimateAsync( TestLocations.SouthPoleLatitude, TestLocations.SouthPoleLongitude, TestLocations.SouthPoleLatitude, TestLocations.SouthPoleLongitude); Assert.NotNull(response); Assert.NotNull(response.Data); Assert.IsType <PriceEstimateCollection>(response.Data); Assert.NotNull(response.Data.PriceEstimates); Assert.Empty(response.Data.PriceEstimates); }
public async void GetPriceEstimate_ForValidParameters_ReturnsListOfPriceEstimates() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.GetPriceEstimateAsync( TestLocations.WhiteHouseLatitude, TestLocations.WhiteHouseLongitude, TestLocations.CapitalLatitude, TestLocations.CapitalLongitude); Assert.NotNull(response); Assert.NotNull(response.Data); Assert.IsType <PriceEstimateCollection>(response.Data); Assert.NotNull(response.Data.PriceEstimates); Assert.NotEmpty(response.Data.PriceEstimates); Assert.NotNull(response.Data.PriceEstimates[0].DisplayName); Assert.NotEmpty(response.Data.PriceEstimates[0].DisplayName); }