public void GuestOkInherited()
        {
            var settings = new Dictionary<string, object>();
            var helper = new EntitySettingsHelper(settings);
            settings["CommonPermissions"] = new Dictionary<string, object>();
            settings.Section("CommonPermissions")["Create"] = "?";

            Auth.Init(new AuthWin("Admin", new UserPrincipal(1, "kishore", "normaluser", "custom", false)));
            Assert.IsTrue(helper.HasAccessTo("Feedback", "Create"));

            Auth.Init(new AuthWin("Admin", new UserPrincipal(1, "kishore", "normaluser", "custom", true)));
            Assert.IsTrue(helper.HasAccessTo("Feedback", "Create"));
        }
        public void MustBeLoggedIn()
        {            
            var settings = new Dictionary<string, object>();
            var helper = new EntitySettingsHelper(settings);
            settings["Article"] = new Dictionary<string, object>();
            settings.Section("Article")["Create"] = "*";

            Auth.Init(new AuthWin("Admin", new UserPrincipal(1, "kishore", "normaluser", "custom", false)));
            Assert.IsFalse(helper.HasAccessTo("Article", "Create"));

            Auth.Init(new AuthWin("Admin", new UserPrincipal(1, "kishore", "normaluser", "custom", true)));
            Assert.IsTrue(helper.HasAccessTo("Article", "Create"));
        }