Example #1
0
        public void GetUUidIsCorrect()
        {
            string expected = IdHandler.CreateUser(Password);
            string result   = IdHandler.GetUuid(Password);

            IdHandler.RemoveUser();

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void WrongPasswordInvalidUser()
        {
            IdHandler.CreateUser(Password);
            bool result = IdHandler.IsValidUser("wrong");

            IdHandler.RemoveUser();

            Assert.IsFalse(result);
        }
Example #3
0
        public void ValidateUser()
        {
            IdHandler.CreateUser(Password);
            bool result = IdHandler.IsValidUser(Password);

            IdHandler.RemoveUser();

            Assert.IsTrue(result);
        }
Example #4
0
        public void GenerateUuidIsRandom()
        {
            string notExpected = IdHandler.CreateUser(Password);

            System.Threading.Thread.Sleep(5000);
            string actual = IdHandler.CreateUser(Password);

            IdHandler.RemoveUser();

            Assert.AreNotEqual(notExpected, actual);
        }
Example #5
0
 private void BtnCreateClick(object sender, EventArgs e)
 {
     if (txtPassword.Text == txtConfirmPassword.Text)
     {
         IdHandler.CreateUser(txtPassword.Text);
         Login();
     }
     else
     {
         Controls.Add(lblNope2);
     }
 }