Ejemplo n.º 1
0
 public DiffCalculator(IDiffResultOption <IDiffResult> diffResultOption)
 {
     _diffResultOption = diffResultOption;
 }
Ejemplo n.º 2
0
 public PerLineDiffResultReportBuilder(IDiffResultOption <IDiffResult> diffResultOption)
 {
     _diffResultOption    = diffResultOption;
     _diffResultPresenter = diffResultOption.DiffResultPresenter;
     _perLineDiffResult   = new List <PerLineDiffResult>();
 }
 public LinesRangeDiffResultReportBuilder(IDiffResultOption <IDiffResult> diffResultOption)
 {
     _diffResultPresenter  = diffResultOption.DiffResultPresenter as IRangeDiffResultPresenter;
     _lineRangeDiffResults = new List <LinesRangeDiffResult>();
     _diffResultOption     = diffResultOption;
 }
Ejemplo n.º 4
0
        public IDiffResultReportBuilder <TSource, IDiffResult> GetBuilder <TSource>(Type resultType, IDiffResultOption <IDiffResult> diffResultOption)
        {
            Type builderType;

            if (!Result2BuilderMap.TryGetValue(resultType, out builderType))
            {
                throw new SetupException("No builder mapping found for result type: {0}", resultType);
            }
            return((IDiffResultReportBuilder <TSource, IDiffResult>)Activator.CreateInstance(builderType, new object[] { diffResultOption }));
        }