Esempio n. 1
0
 public static int Intercept <T>(object instance)
 {
     return((int)Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { }));
 }
Esempio n. 2
0
        public void Returns(object retVal)
        {
            _retVal = retVal;

            Interceptor.SetIntercept(_setupExpr, @params => retVal);
        }
Esempio n. 3
0
 public static object Intercept <T>(object arg1, short arg2)
 {
     return(Interceptor.GetDelegate(typeof(T).Name).Invoke(new object[] { arg1, arg2 }));
 }
Esempio n. 4
0
 public void Start()
 {
     Interceptor.Start(this);
 }