Exemplo n.º 1
0
        public void SystemRole()
        {
            Assert.Throws <SecurityException>(() => AdminQuery.DropRole(SystemRoles.SecureAccessRole));

            var exists = AdminQuery.Access().RoleExists(SystemRoles.SecureAccessRole);

            Assert.IsTrue(exists);
        }
Exemplo n.º 2
0
        public void ExistingRole()
        {
            AdminQuery.DropRole("test_role");

            var exists = AdminQuery.Access().RoleExists("test_role");

            Assert.IsFalse(exists);
        }
Exemplo n.º 3
0
 public void NotExistingRole()
 {
     Assert.Throws <StatementException>(() => AdminQuery.DropRole("another_role"));
 }