//Todo: try to remove textTransformer and fileParser from below constructor public Command(string commandName, ITextTransformer textTransformer, IFilesProcessor <ParsedFilesResultType> filesProcessor) : this(commandName, textTransformer, filesProcessor, new FileReader(), new FileWriter()) { }
public Command(string commandName, ITextTransformer textTransformer, IFilesProcessor <ParsedFilesResultType> filesProcessor, IFileReader fileReader, IFileWriter fileWriter) { _commandName = commandName; _textTransformer = textTransformer; _filesProcessor = filesProcessor; _fileReader = fileReader; _fileWriter = fileWriter; ParameterBuilder = new ParameterBuilder(); }
public TradesAggregationService(ISecuritiesProvider securitiesReader, IFilesProcessor tradesProcessor, IReportWriter reportWriter) { if (securitiesReader == null) { throw new ArgumentNullException(nameof(securitiesReader)); } if (tradesProcessor == null) { throw new ArgumentNullException(nameof(tradesProcessor)); } if (reportWriter == null) { throw new ArgumentNullException(nameof(reportWriter)); } this.securitiesReader = securitiesReader; this.tradesProcessor = tradesProcessor; this.reportWriter = reportWriter; }
public FrameworkFilesProcessor(ILogger logger, IDirectoriesProcessor directoryProcessor, IFilesProcessor filesProcessor) { this.logger = logger; this.directoryProcessor = directoryProcessor; this.filesProcessor = filesProcessor; }