Beispiel #1
0
        public void CanGetParameterAttributeFromProxiedObject()
        {
            ProxyGenerator pg = new ProxyGenerator();
            ClassWithAttributesOnMethodParameters requiredObj = (ClassWithAttributesOnMethodParameters)pg.CreateClassProxy(typeof(ClassWithAttributesOnMethodParameters), new RequiredParamInterceptor());

            requiredObj.MethodTwo(null);
        }
Beispiel #2
0
        public void ParametersAreCopiedToProxiedObject()
        {
            ProxyGenerator pg = new ProxyGenerator();
            ClassWithAttributesOnMethodParameters requiredObj = (ClassWithAttributesOnMethodParameters)pg.CreateClassProxy(typeof(ClassWithAttributesOnMethodParameters), new RequiredParamInterceptor());

            requiredObj.MethodOne(-1);
        }