示例#1
0
        public void TestBasicModelWithoutUsers()
        {
            var e = new Enforcer(_testModelFixture.GetBasicWithoutUserTestModel());

            TestEnforceWithoutUsers(e, "data1", "read", true);
            TestEnforceWithoutUsers(e, "data1", "write", false);
            TestEnforceWithoutUsers(e, "data2", "read", false);
            TestEnforceWithoutUsers(e, "data2", "write", true);
        }