Ejemplo n.º 1
0
 public static List <ISubstitutableValueTracker> Make(ColumnValueSet columnValueSet,
                                                      SnapshotCollection snapshotCollection)
 {
     return(new List <ISubstitutableValueTracker>
     {
         new DateTimeValueTracker(columnValueSet.Column, TimeRangeExtractor.Extract(snapshotCollection)),
         new DefaultValueTracker(columnValueSet.Column.Name)
     });
 }
Ejemplo n.º 2
0
        internal static void ReportDifferences(SnapshotCollection collection, Snapshot before, Snapshot after, Output output, ChangeReportOptions changeReportOptions = ChangeReportOptions.Default)
        {
            var differences = SnapshotDifferenceAnalyser.ExtractDifferences(collection, before, after, changeReportOptions);
            var first       = true;

            foreach (var tableDifference in differences.TableDifferences)
            {
                var report = tableDifference.RowDifferences.AsReport(rep => ReportDifferences(rep, tableDifference, output, changeReportOptions));
                if (!first)
                {
                    output.WriteLine();
                }

                output.FormatTable(report);
                first = false;
            }

            if ((changeReportOptions & ChangeReportOptions.ReportDateDiagnostics) != 0)
            {
                output.WriteLine();
                DateDiagnosticReporter.Report(output, TimeRangeExtractor.Extract(collection), before, after, differences);
            }
        }