public new static WebTestManager Instance()
 {
     // Lock entire body of method
     lock (SyncLock)
     {
         // ReSharper disable once ConvertIfStatementToNullCoalescingExpression
         if (_uniqueInstance == null)
         {
             _uniqueInstance = new WebTestManager();
         }
         return(_uniqueInstance);
     }
 }
Esempio n. 2
0
        public override void OnTestInitialise()
        {
            try
            {
                TestManager = WebTestManager.Instance();
                TestManager.OnTestMethodInitialise(TestParameters);
            }
            catch (System.Exception ex)
            {
                if (LoggingUtility == null || ConfigurationReader == null)
                {
                    throw;
                }

                LoggingUtility.Error(Constants.Exceptions.ExceptionMsgSetupError + ex.Message);

                throw;
            }
        }