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)); }
public void AddAdmin() { module.updateUserInfo(AdminDeterminedByConfig, true); Assert.IsTrue(module.admincheck(AdminDeterminedByConfig)); }