public DiffCalculator(IDiffResultOption <IDiffResult> diffResultOption) { _diffResultOption = diffResultOption; }
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; }
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 })); }