Exemplo n.º 1
0
			public void Intercept(ICastleInvocation invocation)
			{
				if (invocation.Method.DeclaringType == typeof (IMocked)) {

				}

				this.mock.Invoke(new InvocationAdapter(invocation, this.mock));
			}
Exemplo n.º 2
0
 internal InvocationAdapter(ICastleInvocation invocation, IMock mock)
 {
     this.invocation = invocation;
     this.mock = mock;
 }
Exemplo n.º 3
0
 public void Intercept(ICastleInvocation invocation)
 {
     this.mock.Invoke(new InvocationAdapter(invocation, this.mock));
 }
Exemplo n.º 4
0
 private IInvocation TranslateInvocation(Castle.DynamicProxy.IInvocation castleInvocation)
 {
     return(new Invocation(castleInvocation));
 }
Exemplo n.º 5
0
            public void Intercept(Castle.DynamicProxy.IInvocation castleInvocation)
            {
                var invocation = TranslateInvocation(castleInvocation);

                _interceptor.Intercept(invocation);
            }
Exemplo n.º 6
0
 internal Invocation(Castle.DynamicProxy.IInvocation underlying) : base(underlying.Proxy.GetType(), underlying.Method, underlying.Arguments)
 {
     this.underlying = underlying;
 }
Exemplo n.º 7
0
 internal InvocationAdapter(CastleInvocation invocation, IProxied mock)
 {
     this.invocation = invocation;
     this.mock       = mock;
 }
 public void Intercept(Castle.DynamicProxy.IInvocation invocation)
 {
     this.underlying.Intercept(new Invocation(underlying: invocation));
 }