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); }
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); }
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); }
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); }