public async void GetUserProfile_ForInvalidToken_ReturnsError() { var uberClient = new UberSandboxClient(AccessTokenType.Client, _clientToken); var response = await uberClient.GetUserProfileAsync(); response.ShouldNotBe(null); response.Data.ShouldBe(null); response.Error.ShouldNotBe(null); }
public async void GetUserProfile_ForValidToken_ReturnsUserUserActivity() { var uberClient = new UberSandboxClient(AccessTokenType.Client, _clientToken); var response = await uberClient.GetUserProfileAsync(); response.ShouldNotBe(null); response.Data.ShouldNotBe(null); response.Data.ShouldBeOfType <Promotion>(); }