SIL.FieldWorks.FDO.FDOTests.FdoTestBase.RestartCache C# (CSharp) Method

RestartCache() protected method

Restart the cache.
protected RestartCache ( bool doCommit ) : void
doCommit bool 'True' to end the task and commit the changes. 'False' to skip the commit.
return void
		protected virtual void RestartCache(bool doCommit)
		{
			if (doCommit)
			{
				m_cache.DomainDataByFlid.EndNonUndoableTask();
				m_cache.ServiceLocator.GetInstance<IUndoStackManager>().Save();
			}

			m_internalRestart = true;

			try
			{
				FixtureTeardown();

				FixtureSetup();
			}
			finally
			{
				m_internalRestart = false;
			}
		}