Beispiel #1
0
        public YamlFilesTestData(YamlFilesLoader yamlFilesLoader)
        {
            var files = yamlFilesLoader.GetFilesNames();

            files.ForEach(filePath =>
            {
                var fileName = Path.GetFileName(filePath);
                Add(fileName, Utils.EncodeToBase64(filePath));
            });
        }
Beispiel #2
0
        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));
                }
            });
        }