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