public FileDataSourceTest() { _mockFileDataParser = new Mock <IFileDataParser>(MockBehavior.Strict); _mockFileHelper = new Mock <IFileHelper>(MockBehavior.Strict); _fileConfig = new FileSourceConfig(); _fileDataSource = new FileDataSource(_mockFileDataParser.Object, _mockFileHelper.Object, Options.Create(_fileConfig)); }
public FileDataSource(IFileDataParser fileDataParser, IFileHelper fileHelper, IOptions <FileSourceConfig> fileConfiguration) { _fileDataParser = fileDataParser; _fileHelper = fileHelper; _fileConfiguration = fileConfiguration.Value; }