public static object CreateProxy(object wrappedInstance, MocksRepository repository, IMockMixin mockMixin) { var interceptor = new DynamicProxyInterceptor(repository); var realProxy = new MockingProxy((MarshalByRefObject)wrappedInstance, interceptor, mockMixin); return(realProxy.GetTransparentProxy()); }
public ProxyInvocation(MockingProxy proxy, IMethodCallMessage message) { this.message = message; this.proxy = proxy; this.args = message.Args; }
public static object CreateProxy(object wrappedInstance, MocksRepository repository, IMockMixin mockMixin) { var interceptor = new DynamicProxyInterceptor(repository); var realProxy = new MockingProxy((MarshalByRefObject)wrappedInstance, interceptor, mockMixin); return realProxy.GetTransparentProxy(); }