Exemplo n.º 1
0
        public void NhlGameStatsSummary_GetPartialSeason()
        {
            int year = 2012;
            List <Nhl_Games_Summary> results = NhlGamesSummary.GetFullSeason(year, new DateTime(2012, 4, 6));

            Assert.AreEqual(16 + 86, results.Count);
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            string year          = this.Request["SeasonList"];
            bool   performUpdate = (this.Request["Update"] == "Get Latest");

            if (performUpdate)
            {
                NhlGamesSummary.GetFullSeason(year: Convert.ToInt32(year), saveToDb: true);
            }

            return(RedirectToAction("Index", "Nhl", new { seasonYear = Convert.ToInt32(year), update = performUpdate }));
        }
Exemplo n.º 3
0
        public void NhlGameStatsSummary_GetNewResultsOnly()
        {
            int year = 2012;

            NhlGamesSummary.GetNewResultsOnly(year);
        }
Exemplo n.º 4
0
        public void Script_NhlGamesSummary()
        {
            DateTime fromDate = DateTime.Now.AddDays(-2);

            NhlGamesSummary.GetFullSeason(year: 2015, fromDate: fromDate, saveToDb: true);
        }