public override void FixtureTeardown() { m_vernacularWS = null; m_filer = null; m_idleQueue.Dispose(); m_idleQueue = null; m_entryFactory = null; m_senseFactory = null; m_stemAlloFactory = null; m_afxAlloFactory = null; m_stemMsaFactory = null; m_inflAffMsaFactory = null; m_lexEntryRefFactory = null; m_lexEntryInflTypeFactory = null; base.FixtureTeardown(); }
public override void FixtureSetup() { base.FixtureSetup(); m_vernacularWS = Cache.ServiceLocator.WritingSystems.DefaultVernacularWritingSystem; m_idleQueue = new IdleQueue { IsPaused = true }; m_filer = new ParseFiler(Cache, task => {}, m_idleQueue, Cache.LanguageProject.DefaultParserAgent); m_entryFactory = Cache.ServiceLocator.GetInstance <ILexEntryFactory>(); m_senseFactory = Cache.ServiceLocator.GetInstance <ILexSenseFactory>(); m_stemAlloFactory = Cache.ServiceLocator.GetInstance <IMoStemAllomorphFactory>(); m_afxAlloFactory = Cache.ServiceLocator.GetInstance <IMoAffixAllomorphFactory>(); m_stemMsaFactory = Cache.ServiceLocator.GetInstance <IMoStemMsaFactory>(); m_inflAffMsaFactory = Cache.ServiceLocator.GetInstance <IMoInflAffMsaFactory>(); m_lexEntryRefFactory = Cache.ServiceLocator.GetInstance <ILexEntryRefFactory>(); m_lexEntryInflTypeFactory = Cache.ServiceLocator.GetInstance <ILexEntryInflTypeFactory>(); }
public override void FixtureSetup() { base.FixtureSetup(); m_vernacularWS = Cache.ServiceLocator.WritingSystems.DefaultVernacularWritingSystem; m_idleQueue = new IdleQueue {IsPaused = true}; m_filer = new ParseFiler(Cache, task => {}, m_idleQueue, Cache.LanguageProject.DefaultParserAgent); m_entryFactory = Cache.ServiceLocator.GetInstance<ILexEntryFactory>(); m_senseFactory = Cache.ServiceLocator.GetInstance<ILexSenseFactory>(); m_stemAlloFactory = Cache.ServiceLocator.GetInstance<IMoStemAllomorphFactory>(); m_afxAlloFactory = Cache.ServiceLocator.GetInstance<IMoAffixAllomorphFactory>(); m_stemMsaFactory = Cache.ServiceLocator.GetInstance<IMoStemMsaFactory>(); m_inflAffMsaFactory = Cache.ServiceLocator.GetInstance<IMoInflAffMsaFactory>(); m_lexEntryRefFactory = Cache.ServiceLocator.GetInstance<ILexEntryRefFactory>(); m_lexEntryInflTypeFactory = Cache.ServiceLocator.GetInstance<ILexEntryInflTypeFactory>(); }