public void CoreUnrestrictedRuleTest()
        {
            PermissionRules uut = new PermissionRules();

            PermissionRules.IsAuthorizedMethod del = new PermissionRules.IsAuthorizedMethod(uut.IsUnrestrictedRule);

            Dictionary <string, object> contextPropertyBag = uut.PrepareStateForUnrestrictedRule(true);

            bool?isAuthorized = del.Invoke(TestIdentity, TestRoles, null, contextPropertyBag);

            Assert.IsTrue(isAuthorized.HasValue);
            Assert.IsTrue(isAuthorized.Value);

            contextPropertyBag = uut.PrepareStateForUnrestrictedRule(false);

            isAuthorized = del.Invoke(TestIdentity, TestRoles, null, contextPropertyBag);
            Assert.IsTrue(isAuthorized.HasValue);
            Assert.IsFalse(isAuthorized.Value);
        }