private static void LoadCars(ServiceProvider serviceProvider) { ExistingCars existingCars = serviceProvider.GetService <ExistingCars>(); CarFinder carFinder = serviceProvider.GetService <CarFinder>(); existingCars.Load(carFinder.GetAddUrls()); }
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; }