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); } }