protected async Task <IApprendaTestSession> StartAdminSession(TestIsolationLevel isolationLevel = TestIsolationLevel.None, [CallerMemberName] string testName = "") { if (isolationLevel == TestIsolationLevel.CompletelyIsolated) { await WaitUntilNoOtherTestsAreRunnning(); } var connectionProperties = await _connectionSettingsFactory.GetSmokeTestSettings(); if (connectionProperties.AdminUserLogin == null) { connectionProperties.AdminUserLogin = _userLoginRepository.GetAdminUserLogin(); } var session = new ApprendaTestSession(_apiClientFactory, connectionProperties, isolationLevel, _reportingService, testName, connectionProperties.AdminUserLogin); //ping that we've started! _reportingService?.ReportInfo($"Starting test {testName} as admin", new List <string> { "teststart", testName }); return(session); }