public TestCaseInfo(int id, int azureTestCaseId, string title, RunReason runReason) { Id = id; AzureTestCaseId = azureTestCaseId; Title = title; RunReason = runReason; ExtraData = new Dictionary <string, ExtraDataValue>(); }
private void UpdateLastStates(IReadOnlyCollection <TestLastState> testLastStates, RunReason runReason) { var now = DateTime.Now; _logger.LogInformation("Updating test last states for build {@BuildInfo} - reason: {RunReason}, date/time: {DateTime}, test case ids {TestCaseIds}", _buildInfo, runReason, now, testLastStates.Select(tl => tl.TestCaseId)); foreach (var state in testLastStates) { state.LastImpactedDate = now; state.LastImpactedProductBuildInfo = _buildInfo; state.ShouldBeRun = true; state.RunReason = runReason; } }