public NHibernateSessionAttribute()
        {
            if (HttpContext.Current == null || HttpContext.Current.Session == null) return;

            var cache = new HttpSessionCache(new HttpSessionStateWrapper(HttpContext.Current.Session));
            ObjectFactory.Configure(x => x.For<ISessionCache>().Use(cache));
        }
 public void Init()
 {
     _context = Isolate.Fake.Instance<HttpSessionStateBase>();
     _cache = new HttpSessionCache(_context);
 }