Esempio n. 1
0
        public void TestACLEveryoneRetreive()
        {
            ACL acl = new ACL();

            acl.Add(new ACLEveryoneAllowRetrieve());
            acl.Check(new ManagedSecurityContext(new Account()), DataOperation.Retreive);
        }
Esempio n. 2
0
 public void TestBlankACLValidAccount()
 {
     ACL acl = new ACL();
     Account account = new Account();
     acl.Add(new ACLAccount(account, DataOperation.All));
     acl.Check(new ManagedSecurityContext(account), DataOperation.Create);
 }
Esempio n. 3
0
        public void TestBlankACLInvalidAccount()
        {
            ACL acl = new ACL();

            acl.Add(new ACLAccount(new Account(), DataOperation.All));
            acl.Check(new ManagedSecurityContext((Account)null), DataOperation.Create);
        }
Esempio n. 4
0
        public void TestBlankACLValidAccount()
        {
            ACL     acl     = new ACL();
            Account account = new Account();

            acl.Add(new ACLAccount(account, DataOperation.All));
            acl.Check(new ManagedSecurityContext(account), DataOperation.Create);
        }
Esempio n. 5
0
 public void TestACLEveryoneRetreive()
 {
     ACL acl = new ACL();
     acl.Add(new ACLEveryoneAllowRetrieve());
     acl.Check(new ManagedSecurityContext(new Account()), DataOperation.Retreive);
 }
Esempio n. 6
0
 public void TestBlankACLInvalidAccount()
 {
     ACL acl = new ACL();
     acl.Add(new ACLAccount(new Account(), DataOperation.All));
     acl.Check(new ManagedSecurityContext((Account) null), DataOperation.Create);
 }
Esempio n. 7
0
 public void TestBlankACLAdminAccount()
 {
     ACL acl = new ACL();
     acl.Check(new ManagedSecurityContext(ManagedAccount.GetAdminAccount(Session)), DataOperation.Create);
 }
Esempio n. 8
0
 public void TestBlankACLNonAdminAccount()
 {
     ACL acl = new ACL();
     acl.Check(new ManagedSecurityContext(new Account()), DataOperation.Create);
 }
Esempio n. 9
0
        public void TestBlankACLAdminAccount()
        {
            ACL acl = new ACL();

            acl.Check(new ManagedSecurityContext(ManagedAccount.GetAdminAccount(Session)), DataOperation.Create);
        }
Esempio n. 10
0
        public void TestBlankACLNonAdminAccount()
        {
            ACL acl = new ACL();

            acl.Check(new ManagedSecurityContext(new Account()), DataOperation.Create);
        }