private void SetupFactoriesAndRepositories() { Assert.True(Cache != null, "No cache yet!?"); var servLoc = Cache.ServiceLocator; m_possFact = servLoc.GetInstance <ICmPossibilityFactory>(); m_possRepo = servLoc.GetInstance <ICmPossibilityRepository>(); m_posFact = servLoc.GetInstance <IPartOfSpeechFactory>(); m_posRepo = servLoc.GetInstance <IPartOfSpeechRepository>(); m_entryFact = servLoc.GetInstance <ILexEntryFactory>(); m_senseFact = servLoc.GetInstance <ILexSenseFactory>(); m_stemFact = servLoc.GetInstance <IMoStemAllomorphFactory>(); m_affixFact = servLoc.GetInstance <IMoAffixAllomorphFactory>(); }
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>(); }