private static void LoadBrands(ServiceProvider serviceProvider) { ExistingBrands existingBrands = serviceProvider.GetService <ExistingBrands>(); BrandFinder brandFinder = serviceProvider.GetService <BrandFinder>(); existingBrands.Load(brandFinder.GetBrandNames()); }
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; }