Ejemplo n.º 1
0
 public virtual string AsText()
 {
     if (!string.IsNullOrEmpty(Source.Segment.GetVariableId()))
     {
         return($"{Source.Id} with variable ID {Source.Segment.GetVariableId()} ({Source}) is missing in {DifferenceLocation.ToString().ToLower()}");
     }
     return($"{Source.Id} ({Source}) is missing in {DifferenceLocation.ToString().ToLower()}");
 }
Ejemplo n.º 2
0
 public static IEnumerable <MissingComponentDifference> AsMissingComponent(this IEnumerable <Component> components, DifferenceLocation differenceLocation)
 {
     return(components.Select(c => new MissingComponentDifference(c, differenceLocation)));
 }
Ejemplo n.º 3
0
 public static IEnumerable <MissingSegmentDifference> AsMissingSegment(this IEnumerable <Segment> segments, DifferenceLocation differenceLocation)
 {
     return(segments.Select(s => new MissingSegmentDifference(s, differenceLocation)));
 }
Ejemplo n.º 4
0
 public MissingComponentDifference(Component source, DifferenceLocation differenceLocation)
 {
     DifferenceLocation = differenceLocation;
     Source             = source;
 }
Ejemplo n.º 5
0
 public MissingSegmentDifference(Segment missingSegment, DifferenceLocation missingSegmentDifferenceLocation)
 {
     MissingSegment = missingSegment;
     MissingSegmentDifferenceLocation = missingSegmentDifferenceLocation;
 }