Beispiel #1
0
        public override void GlobalContext()
        {
            base.GlobalContext();
            _sessionFactoryProvider = new SessionFactoryProvider();

            _dataBaseFile   = FileHelper.GenerateTemporaryFileName();
            _sessionFactory = _sessionFactoryProvider.InitalizeSessionFactoryFor(_dataBaseFile);
        }
Beispiel #2
0
 public override void GlobalContext()
 {
     base.GlobalContext();
     sut             = new SessionFactoryProvider();
     _dataBaseFile   = FileHelper.GenerateTemporaryFileName();
     _sessionFactory = sut.InitalizeSessionFactoryFor(_dataBaseFile);
     _content        = Encoding.UTF8.GetBytes("content");
 }
        public override void GlobalContext()
        {
            base.GlobalContext();

            _sessionFactoryProvider = new SessionFactoryProvider();

            if (string.IsNullOrEmpty(_dataBaseFile))
            {
                _dataBaseFile = FileHelper.GenerateTemporaryFileName();
            }

            _sessionFactory = _sessionFactoryProvider.InitalizeSessionFactoryFor(_dataBaseFile);

            this.LogDebug("Database file {0}", _dataBaseFile);
        }