public void GetUUidIsCorrect() { string expected = IdHandler.CreateUser(Password); string result = IdHandler.GetUuid(Password); IdHandler.RemoveUser(); Assert.AreEqual(expected, result); }
public void WrongPasswordInvalidUser() { IdHandler.CreateUser(Password); bool result = IdHandler.IsValidUser("wrong"); IdHandler.RemoveUser(); Assert.IsFalse(result); }
public void ValidateUser() { IdHandler.CreateUser(Password); bool result = IdHandler.IsValidUser(Password); IdHandler.RemoveUser(); Assert.IsTrue(result); }
public void GenerateUuidIsRandom() { string notExpected = IdHandler.CreateUser(Password); System.Threading.Thread.Sleep(5000); string actual = IdHandler.CreateUser(Password); IdHandler.RemoveUser(); Assert.AreNotEqual(notExpected, actual); }
private void BtnCreateClick(object sender, EventArgs e) { if (txtPassword.Text == txtConfirmPassword.Text) { IdHandler.CreateUser(txtPassword.Text); Login(); } else { Controls.Add(lblNope2); } }