Exemplo n.º 1
0
        public void UpdateDesignPatternsTest()
        {
            var files = _designPattensFileManager.GetFilesFromFolder(_designPatternsTemplatesPath, new[] { ".xml" }).Result;

            var updater            = new DesignPatternsReader(_designPattensFileManager);
            var designPatternFiles = updater.UpdateDesignPatterns().Result;

            Assert.AreEqual(files.Count(), designPatternFiles.Count());
        }
        private async Task <IEnumerable <String> > GetDesignPatternsFiles()
        {
            var designPatternsTemplatesFiles = await _fileManager.GetFilesFromFolder(_fileManager.GetDesignPatternsTemplatesPath(), new[] { ".xml" });

            return(designPatternsTemplatesFiles.ToList());
        }