示例#1
0
        public void ShouldRequireInteceptionForTypeMatchingPolicy()
        {
            RemotingPolicyInjector factory = GetFactoryWithPolicies();

            bool shouldInterceptMockDal = factory.TypeRequiresInterception(typeof(MockDal));
            bool shouldInterceptString  = factory.TypeRequiresInterception(typeof(string));

            Assert.IsTrue(shouldInterceptMockDal);
            Assert.IsFalse(shouldInterceptString);
        }