예제 #1
0
        public void LoginUnconfirmed()
        {
            ILogin login = new FakeUserLogic();

            bool check = login.UserAuthentication("Admin", "Admin13");

            Assert.IsNotNull(check);
            Assert.IsFalse(check);
        }
예제 #2
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);
            }
        }
예제 #3
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);
            }
        }