/// ------------------------------------------------------------------------------------ /// <summary> /// Overrides DisplayImportedBooksDlg for testing. /// </summary> /// <param name="backupSavedVersion">The saved version for backups of any overwritten /// books.</param> /// ------------------------------------------------------------------------------------ protected override void DisplayImportedBooksDlg(IScrDraft backupSavedVersion) { m_cDisplayImportedBooksDlgCalled++; if (m_fSimulateAcceptAllBooks) { using (DummyImportedBooks dlg = new DummyImportedBooks(Cache, ImportedVersion, backupSavedVersion)) dlg.AcceptAllImportedBooks(); } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Overrides DisplayImportedBooksDlg for testing. /// </summary> /// <param name="backupSavedVersion">The saved version for backups of any overwritten /// books.</param> /// ------------------------------------------------------------------------------------ protected override void DisplayImportedBooksDlg(IScrDraft backupSavedVersion) { m_cDisplayImportedBooksDlgCalled++; if (m_fSimulateAcceptAllBooks) { DummyImportedBooks dlg = new DummyImportedBooks(m_cache, ImportedSavedVersion, backupSavedVersion); dlg.AcceptAllImportedBooks(); } //else if (m_fSimulateDeleteAllBooks) //{ // DummyImportedBooks dlg = new DummyImportedBooks(m_cache, ImportedSavedVersion, backupSavedVersion); // dlg.DeleteAllImportedBooks(); //} }
/// ------------------------------------------------------------------------------------ /// <summary> /// Overrides DisplayImportedBooksDlg for testing - just accepts . /// </summary> /// <param name="backupSavedVersion">The saved version for backups of any overwritten /// books.</param> /// ------------------------------------------------------------------------------------ protected override void DisplayImportedBooksDlg(IScrDraft backupSavedVersion) { DummyImportedBooks dlg = new DummyImportedBooks(m_cache, ImportedSavedVersion, backupSavedVersion); dlg.AcceptAllImportedBooks(); }