public ScheduleController(IConfigurationFacade configuration) { _ruleEngine = configuration.RuleEngine; _whiteSpaceCalculator = configuration.WhiteSpaceCalculator; _noteExtractor = configuration.NoteExtractor; ScheduleEntries = new List <ScheduleEntry>(); }
public void Process(INoteExtractor noteExtractor, string[] columns) { if (columns != null && columns.Length == 4) { _scheduleEntry.SetEntryNumber(ScheduleEntryLine.GetEntryNumber(columns[0])); _scheduleEntry.SetRegistrationDateAndPlanRef(columns[0]); _scheduleEntry.SetPropertyDescription(columns[1]); _scheduleEntry.SetDateOfLeaseAndTerm(columns[2]); _scheduleEntry.SetLesseeTitle(columns[3]); _scheduleEntry.SetNote(noteExtractor); } }
public EntryTextColumnBuilder(IDataEngineColumnRuleEngine dataEngineColumnRuleEngine, IWhiteSpaceSizeCalculator whiteSpaceCalculator, INoteExtractor noteExtractor) { _dataEngineColumnRuleEngine = dataEngineColumnRuleEngine; _whiteSpaceCalculator = whiteSpaceCalculator; _noteExtractor = noteExtractor; }
public void SetNote(INoteExtractor noteExtractor) { Note = noteExtractor.Extract(EntryText); }