Exemple #1
0
 public void Dispose()
 {
     try
     {
         if (this.syntaxProvider != null)
         {
             this.syntaxProvider.Dispose();
         }
         if (Settings.MinimizeAllWindowsOnTestStart)
         {
             Win32Magic.RestoreAllWindows();
         }
     }
     catch { };
 }
Exemple #2
0
        public void Dispose()
        {
            try
            {
                if (FluentSession.Current == null && this.SyntaxProvider != null)
                {
                    this.SyntaxProvider.Dispose();
                }

                if (FluentSettings.Current.MinimizeAllWindowsOnTestStart)
                {
                    Win32Magic.RestoreAllWindows();
                }
            }
            catch { };
        }
        public FluentSession()
        {
            if (FluentSession.Current != null)
            {
                this.Container = FluentSession.Current.Container;
                this.SyntaxProviderRegisterOptions = FluentSession.Current.SyntaxProviderRegisterOptions;
            }
            else
            {
                this.Container = new TinyIoC.TinyIoCContainer();
            }

            if (Settings.MinimizeAllWindowsOnTestStart)
            {
                Win32Magic.MinimizeAllWindows();
            }
        }