Esempio n. 1
0
        public IEnumerable <Climb> GetClimbs(IFileExtractor fileExtract, IClimbExtractor climbExtract, string fileName)

        {
            var climbData = fileExtract.ExtractData(fileName);

            return(climbExtract.ExtractClimbs(climbData));
        }
Esempio n. 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);
            }
        }