public static void Remove() { if (instance != null) { foreach (KeyValuePair <int, AllBrowsers> currentBrowser in instance.browsers) { currentBrowser.Value.Quit(); } instance = null; } }
public static TestsApplication Get(ApplicationSource applicationSource) { if (instance == null) { if (applicationSource == null) { applicationSource = ApplicationSourceRepository.Default(); } instance = new TestsApplication(applicationSource); } return(instance); }