public void AuthenticateUserTest()
        {
            GlobalIdentity g = new GlobalIdentity();
            AuthenticateUserResponse response = g.AuthenticateUser(new AuthenticateUserRequest()
            {
                ApplicationKey = this.ApplicationKey,
                Email = this.UserName + "!",
                Password = this.Password + "!"
            });

            Assert.IsFalse(response.Success);

            response = g.AuthenticateUser(new AuthenticateUserRequest()
            {
                ApplicationKey = this.ApplicationKey,
                Email = this.UserName,
                Password = this.Password
            });

            Assert.IsTrue(response.Success);
        }
        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);
        }