public void ValidateTokenTest() { GlobalIdentity g = new GlobalIdentity(); ValidateTokenResponse response = g.ValidateToken(new ValidateTokenRequest() { ApplicationKey = this.ApplicationKey, Token = Guid.NewGuid().ToString() }); Assert.IsFalse(response.Success); string authenticationToken = g.AuthenticateUser(new AuthenticateUserRequest() { ApplicationKey = this.ApplicationKey, Email = this.UserName, Password = this.Password }).AuthenticationToken; response = g.ValidateToken(new ValidateTokenRequest() { ApplicationKey = this.ApplicationKey, Token = authenticationToken }); Assert.IsTrue(response.Success); }