/// ------------------------------------------------------------------------------------ /// <summary> /// Shuts down the FDO cache /// </summary> /// <remarks>This method is called after each test</remarks> /// ------------------------------------------------------------------------------------ public override void TestTearDown() { m_builder.Dispose(); m_builder = null; m_settings = null; m_mappingList = null; base.TestTearDown(); }
public void Init() { CheckDisposed(); m_builder = new DummySFFileListBuilder(); m_cache = FdoCache.Create("TestLangProj"); if (!m_cache.DatabaseAccessor.IsTransactionOpen()) m_cache.DatabaseAccessor.BeginTrans(); m_cache.BeginUndoTask("Undo SfFileListBuilderTest", "Redo SfFileListBuilderTest"); m_settings = new ScrImportSet(); m_cache.LangProject.TranslatedScriptureOA.DefaultImportSettings = m_settings; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Creates test data and initializes the DummySFFileListBuilder so we can test it. /// </summary> /// ------------------------------------------------------------------------------------ protected override void CreateTestData() { m_settings = m_scr.FindOrCreateDefaultImportSettings(TypeOfImport.Other); m_builder = new DummySFFileListBuilder(); m_builder.ImportSettings = m_settings; DummyScrImportFileInfo.s_alwaysPretendFileDoesNotExist = false; }
public void CleanUp() { CheckDisposed(); m_builder = null; m_cache.ActionHandlerAccessor.EndOuterUndoTask(); m_settings = null; while (m_cache.Undo()) ; if (m_cache.DatabaseAccessor.IsTransactionOpen()) m_cache.DatabaseAccessor.RollbackTrans(); m_cache.Dispose(); m_cache = null; }