예제 #1
0
 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));
 }
예제 #2
0
 public FileDataSource(IFileDataParser fileDataParser, IFileHelper fileHelper, IOptions <FileSourceConfig> fileConfiguration)
 {
     _fileDataParser    = fileDataParser;
     _fileHelper        = fileHelper;
     _fileConfiguration = fileConfiguration.Value;
 }