Exemple #1
0
        public IEnumerable <Climb> GetClimbs(IFileExtractor fileExtract, IClimbExtractor climbExtract, string fileName)

        {
            var climbData = fileExtract.ExtractData(fileName);

            return(climbExtract.ExtractClimbs(climbData));
        }
Exemple #2
0
        public void DoWork(IFileExtractor extractor, IClimbExtractor climbExtractor, IInjector injector)
        {
            foreach (var fileName in extractor.ExtractFilePaths())
            {
                var climbs = GetClimbs(extractor, climbExtractor, fileName);

                injector.Inject(climbs, fileName);
            }
        }
Exemple #3
0
 public ModelBuilderFactory(
     IManifestExtractor manifestExtractor,
     IMetaExtractor metaExtractor,
     IFileExtractor fileExtractor,
     INavigationExtractor navigationExtractor)
 {
     this.manifestExtractor   = manifestExtractor;
     this.metaExtractor       = metaExtractor;
     this.fileExtractor       = fileExtractor;
     this.navigationExtractor = navigationExtractor;
 }
Exemple #4
0
 public void SetFileExtractorProperties(IFileExtractor extractor, IMultiFileConverter converter)
 {
     extractor.ItemFactory = converter.ItemFactory;
     extractor.BilingualParser.ItemFactory = converter.ItemFactory;
 }