private List <ServerLogFileInfo> GetServerLogFileInfoList() { string path = TestHelpers.GetPathToTestDataFolder("InputFiles"); _csvToObjectMapperFileInfo = new CsvToObjectMapper <ServerLogFileInfo>(); _csvToObjectMapperFileInfo.AddMap((t) => t.FileId, "ID"); _csvToObjectMapperFileInfo.AddMap(t => t.FileName, "Name"); _readerLogInfo = new CsvToObjectReader <ServerLogFileInfo>($@"{path}\Files_6_rows_sample.csv", _fileServiceReal, _csvToObjectMapperFileInfo, _loggerFactoryCsvReaderMock); return(_readerLogInfo.Read().ToList()); }
private List <ServerLogFactInfo> GetServerLogFactInfoList() { string path = TestHelpers.GetPathToTestDataFolder("InputFiles"); _csvToObjectMapperFactInfo = new CsvToObjectMapper <ServerLogFactInfo>(); _csvToObjectMapperFactInfo.AddMap(t => t.FileId, "FileID"); _csvToObjectMapperFactInfo.AddMap(t => t.SizeInBytes, "SizeInBytes"); _csvToObjectMapperFactInfo.AddMap(t => t.TimeStamp, "Timestamp"); _readerLogFactInfo = new CsvToObjectReader <ServerLogFactInfo>( path + @"\FileStats_18_rows_sample_3_files.csv", new FileService(), _csvToObjectMapperFactInfo, _loggerFactoryCsvReaderMock); return(_readerLogFactInfo.Read().ToList()); }