public new static ServiceTestManager Instance() { // Lock entire body of method lock (SyncLock) { // ReSharper disable once ConvertIfStatementToNullCoalescingExpression if (_uniqueInstance == null) { _uniqueInstance = new ServiceTestManager(); } return(_uniqueInstance); } }
public override void OnTestInitialise() { var testMethod = TestContext.TestName; try { TestManager = ServiceTestManager.Instance(); TestManager.OnTestMethodInitialise(testMethod, TestContext); CustomAttributesInitialise(testMethod); } catch (Exception ex) { HandleException(ex); } }