예제 #1
0
        public void NhlHtmlReport_ParseSummaryCapsThrashers2007()
        {
            string path = @"C:\Users\jordanf\Google Drive\Coding\Sportsdata\TestData\CapsThrashers_10.05.2007.htm";
            string html = File.ReadAllText(path);

            Nhl_Games_Rtss_Summary model = NhlGamesRtssSummary.ParseHtmlBlob(-1, html);
        }
예제 #2
0
        public void NhlHtmlReport_PareSummaryEnglishInProgressRegSeason()
        {
            string path = @"C:\Users\jordanf\Google Drive\Coding\Sportsdata\TestData\EnglishInProgressRoster.htm";
            string html = File.ReadAllText(path);

            Nhl_Games_Rtss_Summary model = NhlGamesRtssSummary.ParseHtmlBlob(-1, html);
        }
예제 #3
0
        public void NhlHtmlReport_ParseSummaryFrenchRegSeason()
        {
            string path = @"C:\Users\jordanf\Google Drive\Coding\Sportsdata\TestData\FrenchRegSeasonRoster_formatted.htm";
            string html = File.ReadAllText(path);

            Nhl_Games_Rtss_Summary model = NhlGamesRtssSummary.ParseHtmlBlob(-1, html);
        }
예제 #4
0
        public void NhlGamesRtssSummary_ParseHtmlBlob()
        {
            //string htmlBlob = HtmlBlob.RetrieveBlob(HtmlBlobType.NhlRoster, "1", new Uri("http://www.nhl.com/scores/htmlreports/20132014/GS030315.HTM"), true);
            System.IO.StreamReader myFile =
                new System.IO.StreamReader(@"C:\coding\sportsdata\SportsDataTests\Sports\GameSummary1.html");
            string htmlBlob = myFile.ReadToEnd();

            myFile.Close();

            Nhl_Games_Rtss_Summary report = NhlGamesRtssSummary.ParseHtmlBlob(1, htmlBlob);
        }
예제 #5
0
 public void Script_NhlGamesRtssSummary()
 {
     //DateTime fromDate = DateTime.Now.AddDays(-5);
     //NhlGamesRtssSummary.UpdateSeason(year: 2015, forceOverwrite: false, fromDate: fromDate);
     NhlGamesRtssSummary.UpdateSeason(year: 2015, forceOverwrite: true);
 }
예제 #6
0
 public void NhlHtmlReport_ParseMultipleSummaries()
 {
     NhlGamesRtssSummary.UpdateSeason(2014);
 }