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); }
public void ShouldGetCurrentUserEmail() { UserVoice.Client client = getSignedClient(); client = client.LoginAs("*****@*****.**"); AssertEqual("*****@*****.**", (string)client.Get("/api/v1/users/current")["user"]["email"]); }