示例#1
0
        public List <MatchRequest> GetSeasonMatches(SeasonRequest request)
        {
            IWebDriver driver = new ChromeDriver(Path.Combine(EmbeddedData.GetAssemblyDirectory(), "App_Data"));

            SeasonMatches seasonMatches = new SeasonMatches(request, driver);

            driver.Quit();

            return(seasonMatches.MatchRequests);
        }
示例#2
0
        public MatchDetails GetMatchDetails(string matchDate, int teamId)
        {
            IWebDriver driver = new ChromeDriver(Path.Combine(EmbeddedData.GetAssemblyDirectory(), "App_Data"));

            MatchDetails scrapedDetails = new MatchDetails(matchDate, teamId, driver);

            driver.Quit();

            return(scrapedDetails);
        }