Пример #1
0
 public Scraper(ITermRepository termRepo, IProfessorRepository profRepo, IDepartmentRepository departmentRepo,
                IEntryRepository entryRepo, ICourseRepository courseRepo, IHtmlClient htmlClient)
 {
     Terms       = termRepo;
     Professors  = profRepo;
     HtmlClient  = htmlClient;
     Departments = departmentRepo;
     Courses     = courseRepo;
     Entries     = entryRepo;
     Errors      = new ConcurrentBag <Exception>();
 }
Пример #2
0
 public ScraperEnv(IHtmlClient?htmlClient = null)
 {
     _htmlClient = htmlClient ?? new HtmlClient();
 }
 public ParserFactory(IHtmlClient client)
 {
     _client = client;
 }