public void Mlb_GetPostSeasonForAllTeamsTest() { MlbSeasonType seasonType = MlbSeasonType.PostSeason; int seasonYear = 2007; List <MlbGameSummaryModel> result = MlbAttendanceQuery.GetSeason(seasonType, seasonYear); Assert.AreEqual(MlbSeasonType.PostSeason, result[0].MlbSeasonType, "Verify that the game is a Postseason game"); Assert.AreEqual(28, result.Count, "Verify that there are 28 games returned"); }
public void Mlb_GetSpringSeasonForAllTeamsTest() { MlbSeasonType seasonType = MlbSeasonType.Spring; int seasonYear = 2011; List <MlbGameSummaryModel> result = MlbAttendanceQuery.GetSeason(seasonType, seasonYear); Assert.AreEqual(MlbSeasonType.Spring, result[0].MlbSeasonType, "Verify that the game is a Spring season game"); Assert.AreEqual(491, result.Count, "Verify that there are 491 home games returned"); }
public void Mlb_GetRegularSeasonForAllTeamsTest() { MlbSeasonType seasonType = MlbSeasonType.Regular; int seasonYear = 2010; List <MlbGameSummaryModel> result = MlbAttendanceQuery.GetSeason(seasonType, seasonYear); Assert.AreEqual(MlbSeasonType.Regular, result[0].MlbSeasonType, "Verify that the game is a Regular season game"); Assert.AreEqual(2460, result.Where(x => x.Postponed == false).Count(), "Verify that there are 2460 home games returned"); }