public MigrationReport Merge(MigrationReport otherReport) { var allReports = ProjectMigrationReports.Concat(otherReport.ProjectMigrationReports).ToList(); var dedupedReports = DedupeSkippedReports(allReports); return(new MigrationReport(dedupedReports)); }
public override int GetHashCode() { int hash = ProjectMigrationReports?.Sum(p => p.GetHashCode() * 17) ?? 1 * 67; hash += (MigratedProjectsCount * 67); hash += (SucceededProjectsCount * 67); hash += (FailedProjectsCount * 67); hash += (AllSucceeded.GetHashCode() * 67); return(hash); }