public TimesheetProcessingService(ConsolidatingFileSystemMonitor fileSystemMonitor, TaskScheduler scheduler, TimeEntryRowReader entryRowReader, TimeEntryProcessor processor) { _scheduler = scheduler; _entryRowReader = entryRowReader; _processor = processor; _consolidatingFileSystemMonitor = fileSystemMonitor; _consolidatingFileSystemMonitor.WhenFileChanged(fileName => _scheduler.Schedule(() => OnChangedFile(fileName))); }
public void Setup() { _timeEntryExcelFile = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "Files", "Timesheet 2014 JD.xlsm")); _timeEntryRowReader = new TimeEntryRowReader(); _rowFilter = new TimeEntryRowFilter { Until = null, SkipEmptyLines = false }; }
public void Setup() { _timeEntryRowReader = new TimeEntryRowReader(); _rowFilter = new TimeEntryRowFilter(); }