public CrawlerService(IRamseyContext context, IRecipeManager recipeManager, IWordRemover illegalRemover) { _context = context; _recipeManager = recipeManager; _crawlers = new Dictionary <RecipeProvider, IRecipeCrawler> { { RecipeProvider.ReceptSe, new RamseyAuto(new ReceptSeConfig(), illegalRemover) }, { RecipeProvider.Tasteline, new RamseyAuto(new TastelineConfig(), illegalRemover) }, { RecipeProvider.Hemmets, new RamseyAuto(new HemmetsConfig(), illegalRemover) }, { RecipeProvider.ICA, new RamseyAuto(new IcaConfig(), illegalRemover) }, }; }
public RecipeController(IRamseyContext ramseyContext, ICrawlerService crawlerService) { _ramseyContext = ramseyContext; _crawlerService = crawlerService; }
public BasicWordRemover(IRamseyContext ramseyContext) { _ramseyContext = ramseyContext; }
public IngredientController(IRamseyContext ramseyContext) { _ramseyContext = ramseyContext; }
public SqlRecipeManager(IRamseyContext context) { _context = context; }
public MetaControllerV2(IRamseyContext ramseyContext) { _ramseyContext = ramseyContext; }
public TagsControllerV2(IRamseyContext ramseyContext) { _ramseyContext = ramseyContext; }