Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Release all singletons
 /// </summary>
 public override void AfterTest(TestDetails testDetails)
 {
     base.AfterTest(testDetails);
     SingletonsContainer.Release();
 }