protected virtual IAopProxy CreateAopProxy(ProxyFactory advisedSupport)
        {
//            return (IAopProxy) advisedSupport.GetProxy();
            IAopProxyFactory apf = new DefaultAopProxyFactory();

            return(apf.CreateAopProxy(advisedSupport));
        }
        public void NullConfig()
        {
            IAopProxyFactory apf = new DefaultAopProxyFactory();

            Assert.Throws <AopConfigException>(() => apf.CreateAopProxy(null), "Cannot create IAopProxy with null ProxyConfig");
        }