public void Dispose() { _mongoConnection?.Reset(); MainClass.Container?.Dispose(); MainClass.Container = null; if (_resetLfProjectsDuringCleanup) { LanguageForgeProjectAccessor.Reset(); } _languageForgeServerFolder?.Dispose(); Settings = null; if (_releaseSingletons) { SingletonsContainer.Release(); } Environment.SetEnvironmentVariable("FW_CommonAppData", null); }
/// <summary> /// Release all singletons /// </summary> public override void AfterTest(TestDetails testDetails) { base.AfterTest(testDetails); SingletonsContainer.Release(); }