Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }