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); }
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); }