예제 #1
0
파일: Program.cs 프로젝트: Dimo99/Auto
        private static void LoadBrands(ServiceProvider serviceProvider)
        {
            ExistingBrands existingBrands = serviceProvider.GetService <ExistingBrands>();
            BrandFinder    brandFinder    = serviceProvider.GetService <BrandFinder>();

            existingBrands.Load(brandFinder.GetBrandNames());
        }
예제 #2
0
 public CarsBgDataCollector(ExistingBrands existingBrands, ExistingModels existingModels, ExistingCars existingCars, ILogger logger)
 {
     this.browser          = new ScrapingBrowser();
     this.browser.Encoding = Encoding.UTF8;
     this.existingBrands   = existingBrands;
     this.existingModels   = existingModels;
     this.existingCars     = existingCars;
     this.logger           = logger;
 }