Esempio n. 1
0
        public void EnsurePersistencyForChangingAdmin()
        {
            module.updateUserInfo(AdminDeterminedByConfig, true);
            module = new UsersModule(new TestUserHandler(), MakeConfig());
            Assert.IsTrue(module.admincheck(AdminDeterminedByConfig));

            module.updateUserInfo(AdminDeterminedByConfig, false);
            Assert.IsFalse(module.admincheck(AdminDeterminedByConfig));

            module = new UsersModule(new TestUserHandler(), MakeConfig());
            Assert.IsFalse(module.admincheck(AdminDeterminedByConfig));
        }
Esempio n. 2
0
 public void AddAdmin()
 {
     module.updateUserInfo(AdminDeterminedByConfig, true);
     Assert.IsTrue(module.admincheck(AdminDeterminedByConfig));
 }