public bool RegisterUser(string login, string password) { bool ifloginvalidate = loginvalidator.LoginValidate(login); bool ifpasswordvalidate = passwordvalidator.PasswordValidate(password); if (ifloginvalidate == true && ifpasswordvalidate == true) { return(true); } else { return(false); } }
public void test_if_password_is_valid() { bool ifpasswordvalid = passwordvalidator.PasswordValidate("asdasd123@"); Assert.IsTrue(ifpasswordvalid); }