public async void Request_ForInvalidParameters_ReturnsError() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.RequestAsync( "INVALID", TestLocations.WhiteHouseLatitude, TestLocations.WhiteHouseLongitude, TestLocations.SouthPoleLatitude, TestLocations.SouthPoleLongitude); Assert.NotNull(response); Assert.Null(response.Data); Assert.NotNull(response.Error); }
public async void Request_ForValidParameters_ReturnsRequest() { var uberClient = new ClientAuthenticatedUberRiderService(_clientToken, _sandboxUrl); var response = await uberClient.RequestAsync( "893b94af-ca9d-4f0f-9201-6d426cedaa5c", TestLocations.WhiteHouseLatitude, TestLocations.WhiteHouseLongitude, TestLocations.CapitalLatitude, TestLocations.CapitalLongitude); Assert.NotNull(response); Assert.NotNull(response.Data); Assert.IsType <Request>(response.Data); }