public void TestInitialize() { this._resultRepository = new MockValidationResultRepository(); KnownUserFactory.Reset(false); KnownUserFactory.Configure(secretKey: SharedSecreteEventKey); QueueFactory.Reset(); QueueFactory.Configure(); SessionValidationController.Configure(validationResultProviderFactory: () => this._resultRepository); HttpContext.Current = new HttpContext( new HttpRequest("", "http://some.url", "someprop=somevalue&another=value"), new HttpResponse(null)); }