public void Test_CheckAccess_EmptyEntities()
        {
            AllowAllEntityAccessControlChecker checker;

            EntityRef[] entities;
            EntityRef[] permissions;
            EntityRef   user;
            IDictionary <long, bool> result;

            entities    = new EntityRef[] {  };
            permissions = new EntityRef[] { 2 };
            user        = new EntityRef(100);

            checker = new AllowAllEntityAccessControlChecker();
            result  = checker.CheckAccess(entities, permissions, user);

            Assert.That(result, Is.Empty);
        }
        public void Test_CheckAccess_DuplicateEntities()
        {
            AllowAllEntityAccessControlChecker checker;

            EntityRef[] entities;
            EntityRef[] permissions;
            EntityRef   user;
            IDictionary <long, bool> result;

            entities    = new EntityRef[] { 1, 1 };
            permissions = new EntityRef[] { 2 };
            user        = new EntityRef(100);

            checker = new AllowAllEntityAccessControlChecker();
            result  = checker.CheckAccess(entities, permissions, user);

            Assert.That(result, Has.Property("Count").EqualTo(1));
            Assert.That(result, Has.Exactly(1).Property("Key").EqualTo(entities[0].Id).And.Property("Value").True);
        }