コード例 #1
0
        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());
        }
コード例 #2
0
 public ProxyInvocation(MockingProxy proxy, IMethodCallMessage message)
 {
     this.message = message;
     this.proxy   = proxy;
     this.args    = message.Args;
 }
コード例 #3
0
		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();
		}
コード例 #4
0
		public ProxyInvocation(MockingProxy proxy, IMethodCallMessage message)
		{
			this.message = message;
			this.proxy = proxy;
			this.args = message.Args;
		}