///<summary>Used to get the backport result for the given version. Lazy loads the backport result into the list.</summary> private BackportResult GetBackportResultForVersion(string version) { BackportResult backportResult = _listBackportResults.FirstOrDefault(x => x.BackportVersion == version); if (backportResult == null) { backportResult = new BackportResult(version, ResultType.None, new List <ODLineChange>()); _listBackportResults.Add(backportResult); } return(backportResult); }
///<summary>Updates the result for a given version.</summary> ///<param name="version">The specific backport version.</param> ///<param name="result">The new result.</param> public void UpdateResult(string version, ResultType result) { BackportResult backportResult = GetBackportResultForVersion(version); backportResult.Result = result; }
///<summary>Updates the list of failed changes for the given version.</summary> ///<param name="version">The specific backport version.</param> ///<param name="listFailedChanges">The new list of failed line changes.</param> public void UpdateListFailedChanges(string version, List <ODLineChange> listFailedChanges) { BackportResult backportResult = GetBackportResultForVersion(version); backportResult.ListFailedChanges = listFailedChanges; }