public MafiaProvider(IHtmlLoaderHelper htmlLoaderHelper, IConfiguration сonfiguration, IMafiaHelper mafia) : base(htmlLoaderHelper, сonfiguration) { SetsUrl = _сonfiguration.GetSection($"Site:{_site}:Sets").Value; RolsUrl = _сonfiguration.GetSection($"Site:{_site}:Rols").Value; SushiUrl = _сonfiguration.GetSection($"Site:{_site}:Sushi").Value; PizzaUrl = _сonfiguration.GetSection($"Site:{_site}:Pizza").Value; _mafia = mafia; }
public MafiaProviderFactory(IHtmlLoaderHelper htmlLoaderHelper, IConfiguration сonfiguration, IMafiaHelper mafia, Restaurant restaurant) : base(htmlLoaderHelper, сonfiguration) { _restaurant = restaurant; SetsUrl = _сonfiguration.GetSection($"Site:{restaurant.Name}:Sets").Value; RolsUrl = _сonfiguration.GetSection($"Site:{restaurant.Name}:Rols").Value; SushiUrl = _сonfiguration.GetSection($"Site:{restaurant.Name}:Sushi").Value; PizzaUrl = _сonfiguration.GetSection($"Site:{restaurant.Name}:Pizza").Value; _mafia = mafia; }
public GrabberService(IYaposhkaProvider yaposhkaProvider, IMafiaProvider mafiaProvider, ISushiPapaProvider sushiPapaProvider, IRollClubProvider rollClubProvider, ISetRepository setRepository, IRolRepository rolRepository, ISushiRepository sushiRepository, IPizzaRepository pizzaRepository, IRestaurantRepository restaurandRepository, IHtmlLoaderHelper htmlLoaderHelper, IConfiguration сonfiguration, IMafiaHelper mafia, IYaposhkaHelper yaposhka ) { _yaposhkaProvider = yaposhkaProvider; _mafiaProvider = mafiaProvider; _setRepository = setRepository; _rolRepository = rolRepository; _sushiRepository = sushiRepository; _pizzaRepository = pizzaRepository; _sushiPapaProvider = sushiPapaProvider; _rollClubProvider = rollClubProvider; _restaurandRepository = restaurandRepository; _htmlLoaderHelper = htmlLoaderHelper; _сonfiguration = сonfiguration; _mafiaHelper = mafia; _yaposhkaHelper = yaposhka; }