public YamlFilesTestData(YamlFilesLoader yamlFilesLoader) { var files = yamlFilesLoader.GetFilesNames(); files.ForEach(filePath => { var fileName = Path.GetFileName(filePath); Add(fileName, Utils.EncodeToBase64(filePath)); }); }
public YamlFilesTestData(YamlFilesLoader yamlFilesLoader, List <string> fileNamesToIgnore = null) { var files = yamlFilesLoader.GetFilesNames(); files.ForEach(filePath => { if (!fileNamesToIgnore?.Any(fileNameToIgnore => filePath.EndsWith(fileNameToIgnore)) ?? true) { var fileName = Path.GetFileName(filePath); Add(fileName, Utils.EncodeToBase64(filePath)); } }); }