Esempio n. 1
0
        private static void LoadBrands(ServiceProvider serviceProvider)
        {
            ExistingBrands existingBrands = serviceProvider.GetService <ExistingBrands>();
            BrandFinder    brandFinder    = serviceProvider.GetService <BrandFinder>();

            existingBrands.Load(brandFinder.GetBrandNames());
        }
Esempio n. 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;
 }