Example #1
0
        public bool ChangePassword(string password1, string password2)
        {
            switch (userGroup)
            {
            case 1:
                return(admin.ChangePassword(password1, password2));

            case 2:
                return(employee.ChangePassword(password1, password2));

            case 3:
                return(visitor.ChangePassword(password1, password2));
            }
            return(false);
        }
Example #2
0
 public void changePasswordTest()
 {
     Assert.IsTrue(visitor.ChangePassword("lol", "haha"));
 }