示例#1
0
        public void TestMethod1()
        {
            // 1) Arrange
            string   LeagueName = "NBA";
            DateTime GameDate   = DateTime.Today.AddDays(-2);

            initAll(GameDate, LeagueName);

            //  SeasonInfoDTO oSeasonInfoDTO = new SeasonInfoDTO();
            SeasonInfoDO oSeasonInfo = new SeasonInfoDO(_GameDate, _oLeagueDTO.LeagueName);

            // oSeasonInfo.PopulateSeasonInfoDTO(oSeasonInfoDTO);
            if (oSeasonInfo.oSeasonInfoDTO.Bypass)
            {
                return;
            }

            // 2) Act
            DailySummaryDTO oDailySummaryDTO = new DailySummaryDTO();
            DailySummaryDO  oDailySummary    = new DailySummaryDO(_GameDate, _oLeagueDTO, _ConnectionString, _strLoadDateTime);

            oDailySummary.RefreshRow(5);
            int rows = oDailySummary.GetRow(oDailySummaryDTO);

            // 3) Assert
            Assert.AreEqual(1, rows);
        }