예제 #1
0
        public MigrationReport Merge(MigrationReport otherReport)
        {
            var allReports     = ProjectMigrationReports.Concat(otherReport.ProjectMigrationReports).ToList();
            var dedupedReports = DedupeSkippedReports(allReports);

            return(new MigrationReport(dedupedReports));
        }
예제 #2
0
        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);
        }