Пример #1
0
        /// <exception cref="System.IO.IOException"></exception>
        public virtual void TestLockDatabaseFileTrue()
        {
            IObjectContainer container = OpenObjectContainer(true);

            if (!Platform4.NeedsLockFileThread())
            {
                Assert.Expect(typeof(DatabaseFileLockedException), new _ICodeBlock_31(this));
            }
            container.Close();
        }
            /// <exception cref="System.Exception"></exception>
            protected override void Configure(IConfiguration config)
            {
                if (Platform4.NeedsLockFileThread())
                {
                    config.LockDatabaseFile(false);
                }
                IExceptionPropagationFixture propagationFixture = CurrentExceptionPropagationFixture
                                                                      ();
                IExceptionFactory exceptionFactory = new _IExceptionFactory_37(propagationFixture
                                                                               );

                _storage         = new ExceptionSimulatingStorage(config.Storage, exceptionFactory);
                config.Storage   = _storage;
                _idSystemFactory = new _IIdSystemFactory_61(this, exceptionFactory);
                ConfigureIdSystem(config);
            }