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; this.HasBootstrappedTypes = FluentSession.Current.HasBootstrappedTypes; } else { this.Container = new TinyIoC.TinyIoCContainer(); } if (FluentSettings.Current.MinimizeAllWindowsOnTestStart) { Win32Magic.MinimizeAllWindows(); } }