public InProcSessionManagerFixture() {
   _nancyContext = new NancyContext();
   _fakeSessionIdentificationMethod = A.Fake<IInProcSessionIdentificationMethod>();
   _validConfiguration = new InProcSessionsConfiguration {SessionIdentificationMethod = _fakeSessionIdentificationMethod, SessionTimeout = TimeSpan.FromMinutes(30), CacheTrimInterval = TimeSpan.FromMinutes(40)};
   _fakeSessionCache = A.Fake<IInProcSessionCache>();
   _fakeSessionFactory = A.Fake<IInProcSessionFactory>();
   _fakePeriodicCacheCleaner = A.Fake<IPeriodicCacheCleaner>();
   _sessionManager = new InProcSessionManager(_validConfiguration, _fakeSessionCache, _fakeSessionFactory, _fakePeriodicCacheCleaner);
 }
 public InProcSessionManagerFixture()
 {
     _nancyContext = new NancyContext();
     _fakeSessionIdentificationMethod = A.Fake <IInProcSessionIdentificationMethod>();
     _validConfiguration = new InProcSessionsConfiguration {
         SessionIdentificationMethod = _fakeSessionIdentificationMethod, SessionTimeout = TimeSpan.FromMinutes(30), CacheTrimInterval = TimeSpan.FromMinutes(40)
     };
     _fakeSessionCache         = A.Fake <IInProcSessionCache>();
     _fakeSessionFactory       = A.Fake <IInProcSessionFactory>();
     _fakePeriodicCacheCleaner = A.Fake <IPeriodicCacheCleaner>();
     _sessionManager           = new InProcSessionManager(_validConfiguration, _fakeSessionCache, _fakeSessionFactory, _fakePeriodicCacheCleaner);
 }