Example #1
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// lears member variables, cleans up temp files, shuts down the cache, etc.
		/// </summary>
		/// <remarks>This method is called after each test</remarks>
		/// ------------------------------------------------------------------------------------
		public override void TestTearDown()
		{
			m_exporter = null;
			m_filter = null;
			if (m_fileName != null)
				FileUtils.Delete(m_fileName);
			m_stylesheet = null;
			m_fileName = null;

			base.TestTearDown();
		}
Example #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// lears member variables, cleans up temp files, shuts down the cache, etc.
        /// </summary>
        /// <remarks>This method is called after each test</remarks>
        /// ------------------------------------------------------------------------------------
        public override void TestTearDown()
        {
            m_exporter = null;
            m_filter   = null;
            if (m_fileName != null)
            {
                FileUtils.Delete(m_fileName);
            }
            m_stylesheet = null;
            m_fileName   = null;

            base.TestTearDown();
        }
Example #3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Test setup
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();
            m_fileName = FileUtils.GetTempFile("tmp");
            FileUtils.Delete(m_fileName);               // exporter pops up dialog if file exists!
            m_stylesheet = new FwStyleSheet();
            m_stylesheet.Init(Cache, m_scr.Hvo, ScriptureTags.kflidStyles);

            m_book = AddBookToMockedScripture(1, "Genesis");
            AddTitleToMockedBook(m_book, "Genesis");

            m_filter = Cache.ServiceLocator.GetInstance <IFilteredScrBookRepository>().GetFilterInstance(123);

            m_filter.ShowAllBooks();

            m_exporter = new ExportXhtml(m_fileName, Cache, m_filter, ExportWhat.AllBooks, 1, 0, 0,
                                         string.Empty, m_stylesheet, null, null);
        }
Example #4
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Test setup
		/// </summary>
		/// ------------------------------------------------------------------------------------
		public override void TestSetup()
		{
			base.TestSetup();
			m_fileName = FileUtils.GetTempFile("tmp");
			FileUtils.Delete(m_fileName);	// exporter pops up dialog if file exists!
			m_stylesheet = new FwStyleSheet();
			m_stylesheet.Init(Cache, m_scr.Hvo, ScriptureTags.kflidStyles);

			m_book = AddBookToMockedScripture(1, "Genesis");
			AddTitleToMockedBook(m_book, "Genesis");

			m_filter = Cache.ServiceLocator.GetInstance<IFilteredScrBookRepository>().GetFilterInstance(123);

			m_filter.ShowAllBooks();

			m_exporter = new ExportXhtml(m_fileName, Cache, m_filter, ExportWhat.AllBooks, 1, 0, 0,
				string.Empty, m_stylesheet, null, null);
		}