Beispiel #1
0
        public void Dispose()
        {
            try
            {
                if (FluentSession.Current == null && this.SyntaxProvider != null)
                {
                    this.SyntaxProvider.Dispose();
                }

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

            if (FluentSettings.Current.MinimizeAllWindowsOnTestStart)
            {
                Win32Magic.MinimizeAllWindows();
            }
        }