public void add_type_for_check()
        {
            var node = new AuthorizationNode();
            node.Add(typeof (FakeAuthCheck));

            node.Policies.Single().ShouldBeOfType<AuthorizationCheckPolicy<FakeAuthCheck>>();
        }
        public void add_type_for_a_policy()
        {
            var node = new AuthorizationNode();
            node.Add(typeof (AlwaysAllowPolicy));

            node.Policies.Single().ShouldBeOfType<AlwaysAllowPolicy>();
        }
示例#3
0
        public void add_type_for_check()
        {
            var node = new AuthorizationNode();

            node.Add(typeof(FakeAuthCheck));

            node.Policies.Single().ShouldBeOfType <AuthorizationCheckPolicy <FakeAuthCheck> >();
        }
示例#4
0
        public void add_type_for_a_policy()
        {
            var node = new AuthorizationNode();

            node.Add(typeof(AlwaysAllowPolicy));

            node.Policies.Single().ShouldBeOfType <AlwaysAllowPolicy>();
        }