public void LoginUnconfirmed() { ILogin login = new FakeUserLogic(); bool check = login.UserAuthentication("Admin", "Admin13"); Assert.IsNotNull(check); Assert.IsFalse(check); }
public void AdminUnconfirmed() { IAdminVerification admin = new FakeUserLogic(); List <UserLogic> uList = admin.AdminVerification("User"); foreach (UserLogic user in uList) { var isAdmin = user.admin; Assert.AreEqual(0, isAdmin); } }
public void AdminConfirmed() { IAdminVerification Admin = new FakeUserLogic(); List <UserLogic> uList = Admin.AdminVerification("Admin"); foreach (UserLogic user in uList) { int isAdmin = user.admin; Assert.AreEqual(1, isAdmin); } }