예제 #1
0
            public object Raise(object[] arguments)
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.fakeCallProcessorProvider.Fetch(this.Instance).Process(call);
                return(call.ReturnValue);
            }
예제 #2
0
            private void RaiseCallWasIntercepted(DelegateFakeObjectCall call)
            {
                var handler = this.CallWasIntercepted;

                if (handler != null)
                {
                    this.CallWasIntercepted(null, new CallInterceptedEventArgs(call));
                }
            }
예제 #3
0
            // ReSharper disable UnusedMember.Local
            public object Raise(object[] arguments)
            // ReSharper restore UnusedMember.Local
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.RaiseCallWasIntercepted(call);

                return(call.ReturnValue);
            }
예제 #4
0
            // ReSharper disable UnusedMember.Local
            public object Raise(object[] arguments)
            // ReSharper restore UnusedMember.Local
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.fakeCallProcessorProvider.Fetch(this.Instance).Process(call);

                return(call.ReturnValue);
            }
            // ReSharper disable UnusedMember.Local
            public object Raise(object[] arguments)
            // ReSharper restore UnusedMember.Local
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.fakeCallProcessorProvider.Fetch(this.Instance).Process(call);

                return call.ReturnValue;
            }
 public object Raise(object[] arguments)
 {
     var call = new DelegateFakeObjectCall(this.Instance, this.method, arguments);
     this.fakeCallProcessorProvider.Fetch(this.Instance).Process(call);
     return call.ReturnValue;
 }
            private void RaiseCallWasIntercepted(DelegateFakeObjectCall call)
            {
                var handler = this.CallWasIntercepted;

                if (handler != null)
                {
                    this.CallWasIntercepted(null, new CallInterceptedEventArgs(call));
                }
            }
            // ReSharper restore UnusedMember.Local
            // ReSharper disable UnusedMember.Local
            public object Raise(object[] arguments)
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.RaiseCallWasIntercepted(call);

                return call.ReturnValue;
            }
            public object Raise(object[] arguments)
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);
                EventHandler<CallInterceptedEventArgs> handler = this.CallWasIntercepted;

                if (handler != null)
                    this.CallWasIntercepted(null, new CallInterceptedEventArgs(call));

                return call.ReturnValue;
            }
            // ReSharper disable UnusedMember.Local
            public object Raise(object[] arguments)
            // ReSharper restore UnusedMember.Local
            {
                var call = new DelegateFakeObjectCall(this.Instance, this.Method, arguments);

                this.RaiseCallWasIntercepted(call);

                return call.ReturnValue;
            }