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

        {
            var climbData = fileExtract.ExtractData(fileName);

            return(climbExtract.ExtractClimbs(climbData));
        }
예제 #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);
            }
        }
예제 #3
0
 public ModelBuilderFactory(
     IManifestExtractor manifestExtractor,
     IMetaExtractor metaExtractor,
     IFileExtractor fileExtractor,
     INavigationExtractor navigationExtractor)
 {
     this.manifestExtractor   = manifestExtractor;
     this.metaExtractor       = metaExtractor;
     this.fileExtractor       = fileExtractor;
     this.navigationExtractor = navigationExtractor;
 }
예제 #4
0
 public void SetFileExtractorProperties(IFileExtractor extractor, IMultiFileConverter converter)
 {
     extractor.ItemFactory = converter.ItemFactory;
     extractor.BilingualParser.ItemFactory = converter.ItemFactory;
 }