Beispiel #1
0
 /// <summary>
 /// Initializes an new <see cref="DiffRootResult"/> with a change set.
 /// </summary>
 /// <param name="name">The package name.</param>
 /// <param name="changes">The changes.</param>
 internal DiffRootResult(IDiffRoot definition, IReadOnlyList <AddedDiff> addedDiffs, IReadOnlyList <DeletedDiff> deletedDiffs, IReadOnlyList <ModifiedDiff> modifiedDiffs)
 {
     Definition    = definition;
     AddedDiffs    = addedDiffs;
     DeletedDiffs  = deletedDiffs;
     ModifiedDiffs = modifiedDiffs;
     DiffType      = addedDiffs.Count + deletedDiffs.Count + modifiedDiffs.Count == 0 ? DiffRootResultType.None : DiffRootResultType.Changed;
 }
 public DiffRootResultBuilderBase(IDiffRoot diffRoot)
 {
     DiffRoot = diffRoot;
 }
Beispiel #3
0
 public DiffRootResultBuilder(IDiffRoot diffRoot) : base(diffRoot)
 {
 }