Ejemplo n.º 1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Rollback any DB changes
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestTearDown()
		{
			m_importMgr = null;
			// We have to begin another undo task because we have to end the undo task in the
			// test setup.
			Cache.ActionHandlerAccessor.BeginUndoTask("Bogus", "Bogus");
			base.TestTearDown();
		}
Ejemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initialize the importer and set up Undo action
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestSetup()
		{
			base.TestSetup();

			MockScrObjWrapper.s_fSimulateCancel = true;
			m_settings.StartRef = m_titus;
			m_settings.EndRef = m_titus;
			m_settings.ImportTranslation = true;
			m_settings.ImportBackTranslation = false;
			m_settings.ImportBookIntros = true;
			m_settings.ImportAnnotations = false;

			m_importMgr = new DummyTeImportManagerWithMockImporter(Cache, m_styleSheet);
			Cache.ServiceLocator.GetInstance<IActionHandler>().EndUndoTask();
		}