Пример #1
0
        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)));
        }
Пример #2
0
        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
            };
        }
Пример #3
0
 public void Setup()
 {
     _timeEntryRowReader = new TimeEntryRowReader();
     _rowFilter          = new TimeEntryRowFilter();
 }