Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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>();
        }