public async void RefreshAccessToken_ForInvalidefreshToken_ReturnsNull() { var uberClient = new UberAuthenticationClient(_clientId, _clientSecret); var response = await uberClient.RefreshAccessTokenAsync("INVALID", "https://sandbox-api.uber.com/"); Assert.Null(response); }
public async void RefreshAccessToken_ForValidRefreshToken_ReturnsValidAccessToken() { var uberClient = new UberAuthenticationClient(_clientId, _clientSecret); var response = await uberClient.RefreshAccessTokenAsync("TODO", "https://sandbox-api.uber.com/"); Assert.NotNull(response); Assert.IsType <AccessToken>(response); Assert.NotEmpty(response.Value); }
public async void RefreshAccessToken_ForValidRefreshToken_ReturnsValidAccessToken() { var uberClient = new UberAuthenticationClient(_clientId, _clientSecret); var response = await uberClient.RefreshAccessTokenAsync("TODO", "https://sandbox-api.uber.com/"); response.ShouldNotBe(null); response.ShouldBeOfType <AccessToken>(); response.Value.ShouldNotBeNullOrEmpty(); }