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