public MenuManager(IMenuDao menuDao, IDateProvider dateProvider, IWebScraper webScraper, ILogger <MenuManager> logger) { this.menuDao = menuDao; this.dateProvider = dateProvider; this.webScraper = webScraper; this.logger = logger; }
public MenuService(ISession session) { _session = session; _menuDao = new MenuDao() { Session = session }; _userDao = new UserDao() { Session = session }; }
static void SaveOldHtmlMenus(IMenuDao dao, string directoryName) { var files = Directory.GetFiles(directoryName); var htmlProvider = new StaticFileLoadedHtmlDocProvider(); var webScraper = new WebScraper(htmlProvider, new MonthConvertor(), new PragueDateProvider(), new VoidLogger <WebScraper>()); foreach (var file in files) { if (Path.GetExtension(file) != ".html") { continue; } Console.WriteLine(file); htmlProvider.SetFile(file); var menu = webScraper.ScrapeForMenu(); dao.Save(menu); } }
public MenuService(IMenuDao menuDao) { _menuDao = menuDao; }
public MenuService(IMenuDao dao) { _dao = dao; _menuSaveDtoValidator = new MenuSaveDtoValidator(); }
public MenuService(IMenuDao menuDao) { _menuDao = menuDao; }
public MenuController(IMenuDao menuDao) { _menuDao = menuDao; }
public MenuService() { oMenuDao = new MenuDaoSql(); }
public MenuService() { menuDao = StructureMapWapper.GetInstance <IMenuDao>(); }