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 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); }
// 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; }
// 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; }