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>(); }
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>(); }