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) },
            };
        }
示例#2
0
 public RecipeController(IRamseyContext ramseyContext, ICrawlerService crawlerService)
 {
     _ramseyContext  = ramseyContext;
     _crawlerService = crawlerService;
 }
 public BasicWordRemover(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
 public IngredientController(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
示例#5
0
 public SqlRecipeManager(IRamseyContext context)
 {
     _context = context;
 }
示例#6
0
 public MetaControllerV2(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }
示例#7
0
 public TagsControllerV2(IRamseyContext ramseyContext)
 {
     _ramseyContext = ramseyContext;
 }