public ClassicRequestEventHandlerTests()
 {
     ApplicationLifecycleModule.ResetConfiguration();
     App         = new FakeHttpApplication();
     Events      = new List <LogEvent>();
     LevelSwitch = new LoggingLevelSwitch(LogEventLevel.Verbose);
     Log.Logger  = new LoggerConfiguration()
                   .MinimumLevel.ControlledBy(LevelSwitch)
                   .WriteTo.Sink(new DelegatingSink(ev => Events.Add(ev)))
                   .CreateLogger();
 }
 protected override void ResetConfiguration()
 {
     ApplicationLifecycleModule.ResetConfiguration();
 }
 public void Dispose()
 {
     Log.CloseAndFlush();
     ApplicationLifecycleModule.ResetConfiguration();
 }