Example #1
0
 public void WhenClosingTheProxy()
 => OnError.Continue(() =>
 {
     if (Proxy.IsValueCreated)
     {
         Proxy.Value.Close();
     }
 });
Example #2
0
 public void LogFilesAndCleanUp()
 => OnError.Continue(() =>
 {
     foreach (var f in base.Repository)
     {
         try
         {
             f.Value.Stream.Dispose();
         }
         catch { }     //dump them all, even if one fails.
     }
 });
Example #3
0
 public void TeardownSelenium()
 => OnError.Continue(() =>
 {
     _keepAlive.Dispose();
 });