Beispiel #1
0
        public static Boolean RegisterSignInRemove()
        {
            DovetailUser test   = new DovetailUser("test", "test", "test", "test", "test", "test", 10.0, true);
            bool         result = UserAccountHandler.RegisterNewUser(test);

            result = UserAccountHandler.UserSignIn(test);
            if (result)
            {
                result = UserAccountHandler.RemoveUser(test);
            }
            return(result);
        }
Beispiel #2
0
        public static Boolean AllowAccess()
        {
            DovetailUser test   = new DovetailUser("test", "test", "test", "test", "test", "test", 10.0, false);
            bool         result = UserAccountHandler.RegisterNewUser(test);

            result = UserAccountHandler.AllowAccessForUser("test");
            if (result)
            {
                result = UserAccountHandler.RemoveUser(test);
            }
            return(result);
        }
Beispiel #3
0
        public static Boolean PasswordUpdate()
        {
            DovetailUser test   = new DovetailUser("test", "test", "test", "test", "test", "test", 10.0, false);
            bool         result = UserAccountHandler.RegisterNewUser(test);

            result = UserAccountHandler.UserUpdatePassword("test", "test1");
            if (result)
            {
                if (test.Password != "test1")
                {
                    result = false;
                }
            }
            bool remove = UserAccountHandler.RemoveUser(test);

            return(result);
        }
Beispiel #4
0
        public static Boolean WageUpdate()
        {
            DovetailUser test   = new DovetailUser("test", "test", "test", "test", "test", "test", 9.0, false);
            bool         result = UserAccountHandler.RegisterNewUser(test);

            result = UserAccountHandler.UserUpdateWage("test", 10.0);
            if (result)
            {
                if (test.Wage != 10.0)
                {
                    result = false;
                }
            }
            bool remove = UserAccountHandler.RemoveUser(test);

            return(result);
        }