public void TestInitialize()
        {
            Stopwatch = Stopwatch.StartNew();
            Logger    = new MsTestLogger(TestContext);

            // Note: Events take long and increase run time of the test suite, so only using trace.
            Logger.Trace($"Starting test - {TestContext.TestName}", SeverityLevel.Information);

            _listener = new ConsoleEventListener();
        }
示例#2
0
 public TestTokenRefresher(
     string deviceId,
     string key,
     int suggestedTimeToLive,
     int timeBufferPercentage,
     Client.TransportType transport,
     MsTestLogger logger)
     : base(deviceId, suggestedTimeToLive, timeBufferPercentage)
 {
     _key       = key;
     _transport = transport;
     _logger    = logger;
 }
示例#3
0
 public TestTokenRefresher(string deviceId, string key, MsTestLogger logger) : base(deviceId)
 {
     _key    = key;
     _logger = logger;
 }