Esempio n. 1
0
 public DirectoryTreeCrawler(RelevantFileDetector relevantFileDetector, FeatureNodeFactory featureNodeFactory,
                             IFileSystem fileSystem)
 {
     this.relevantFileDetector = relevantFileDetector;
     this.featureNodeFactory   = featureNodeFactory;
     this.fileSystem           = fileSystem;
 }
Esempio n. 2
0
 public FeatureNodeFactory(RelevantFileDetector relevantFileDetector, FeatureParser featureParser, HtmlMarkdownFormatter htmlMarkdownFormatter, IFileSystem fileSystem)
 {
     this.relevantFileDetector  = relevantFileDetector;
     this.featureParser         = featureParser;
     this.htmlMarkdownFormatter = htmlMarkdownFormatter;
     this.fileSystem            = fileSystem;
 }
Esempio n. 3
0
 public FeatureNodeFactory(RelevantFileDetector relevantFileDetector, FeatureParser featureParser, HtmlMarkdownFormatter htmlMarkdownFormatter, IFileSystem fileSystem)
 {
     this.relevantFileDetector = relevantFileDetector;
     this.featureParser = featureParser;
     this.htmlMarkdownFormatter = htmlMarkdownFormatter;
     this.fileSystem = fileSystem;
 }
 public DirectoryTreeCrawler(FeatureParser featureParser, RelevantFileDetector relevantFileDetector,
                             FeatureNodeFactory featureNodeFactory)
 {
     this.featureParser = featureParser;
     this.relevantFileDetector = relevantFileDetector;
     this.featureNodeFactory = featureNodeFactory;
 }
        public void IsRelevant_ImageFileInfo_ReturnsTrue()
        {
            var fileDetector = new RelevantFileDetector();

            var fileSystem = new MockFileSystem();
            var file = fileSystem.FileInfo.FromFileName("image.png");

            bool isRelevant = fileDetector.IsRelevant(file);

            Check.That(isRelevant).IsTrue();
        }
 public DirectoryTreeCrawler(RelevantFileDetector relevantFileDetector, FeatureNodeFactory featureNodeFactory, IFileSystem fileSystem)
 {
     this.relevantFileDetector = relevantFileDetector;
     this.featureNodeFactory = featureNodeFactory;
     this.fileSystem = fileSystem;
 }