WebRequest FireSendingRequestEvent (FakePackageRepositoryWithHttpClientEvents clientEvents) { var request = new FakeWebRequest (); request.Headers = new WebHeaderCollection (); var eventArgs = new WebRequestEventArgs (request); clientEvents.RaiseSendingRequestEvent (eventArgs); return request; }
WebRequest FireSendingRequestEvent(FakePackageRepositoryWithHttpClientEvents clientEvents) { var request = new FakeWebRequest(); request.Headers = new WebHeaderCollection(); var eventArgs = new WebRequestEventArgs(request); clientEvents.RaiseSendingRequestEvent(eventArgs); return(request); }