public IEnumerable <Climb> GetClimbs(IFileExtractor fileExtract, IClimbExtractor climbExtract, string fileName) { var climbData = fileExtract.ExtractData(fileName); return(climbExtract.ExtractClimbs(climbData)); }
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); } }
public ModelBuilderFactory( IManifestExtractor manifestExtractor, IMetaExtractor metaExtractor, IFileExtractor fileExtractor, INavigationExtractor navigationExtractor) { this.manifestExtractor = manifestExtractor; this.metaExtractor = metaExtractor; this.fileExtractor = fileExtractor; this.navigationExtractor = navigationExtractor; }
public void SetFileExtractorProperties(IFileExtractor extractor, IMultiFileConverter converter) { extractor.ItemFactory = converter.ItemFactory; extractor.BilingualParser.ItemFactory = converter.ItemFactory; }