示例#1
0
        public void ShouldReuseAccessToken()
        {
            const string email = "*****@*****.**";

            UserVoice.Client client    = getSignedClient();
            UserVoice.Client userToken = client.LoginAs(email);

            UserVoice.Client copiedToken = getSignedClient()
                                           .LoginWithAccessToken(userToken.Token, userToken.Secret);
            AssertEqual((string)copiedToken.Get("/api/v1/users/current")["user"]["email"], email);
        }
示例#2
0
 public void ShouldGetCurrentUserEmail()
 {
     UserVoice.Client client = getSignedClient();
     client = client.LoginAs("*****@*****.**");
     AssertEqual("*****@*****.**", (string)client.Get("/api/v1/users/current")["user"]["email"]);
 }