Пример #1
0
        public void GetUUidIsCorrect()
        {
            string expected = IdHandler.CreateUser(Password);
            string result   = IdHandler.GetUuid(Password);

            IdHandler.RemoveUser();

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

            IdHandler.RemoveUser();

            Assert.IsFalse(result);
        }
Пример #3
0
        public void ValidateUser()
        {
            IdHandler.CreateUser(Password);
            bool result = IdHandler.IsValidUser(Password);

            IdHandler.RemoveUser();

            Assert.IsTrue(result);
        }
Пример #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);
        }
Пример #5
0
 private void BtnCreateClick(object sender, EventArgs e)
 {
     if (txtPassword.Text == txtConfirmPassword.Text)
     {
         IdHandler.CreateUser(txtPassword.Text);
         Login();
     }
     else
     {
         Controls.Add(lblNope2);
     }
 }