Exemple #1
0
 public override void OnTestInitialise()
 {
     try
     {
         TestManager = ServiceTestManager.Instance();
         TestManager.OnTestMethodInitialise(TestParameters);
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
 }
 public new static ServiceTestManager Instance()
 {
     // Lock entire body of method
     lock (SyncLock)
     {
         // ReSharper disable once ConvertIfStatementToNullCoalescingExpression
         if (_uniqueInstance == null)
         {
             _uniqueInstance = new ServiceTestManager();
         }
         return(_uniqueInstance);
     }
 }