public PrintService(string backupFilePath) { backupFileLocation = backupFilePath; LoadQueueFromFile(); executor = new PrintExecutor(queue); executor.Start(); }
//for unittests/DI public PrintService(IDynamicQueue <JobDetails> _queue, IJobExecutor <JobDetails> _executor) { queue = _queue; executor = _executor; executor.Start(); }