void SetStartUpParameters(ITestRun testRun) { if (TestRunStartTypes.Immediately == testRun.StartType) testRun.Status = TestRunQueue.TestRuns.Any(tr => tr.TestLabId == testRun.TestLabId && tr.IsQueued()) ? TestRunStatuses.Pending : TestRunStatuses.Running; if (testRun.IsActive()) testRun.SetStartTime(); }
void SetStartUpParameters(ITestRun testRun) { if (TestRunStartTypes.Immediately == testRun.StartType) { testRun.Status = TestRunQueue.TestRuns.Any(tr => tr.TestLabId == testRun.TestLabId && tr.IsQueued()) ? TestRunStatuses.Pending : TestRunStatuses.Running; } if (testRun.IsAcceptingNewClients()) { testRun.SetStartTime(); } }