コード例 #1
0
 public void GetActiveBoxScores_Count_Equals_Zero()
 {
     var client = new FantasyDataClient();
     var results = client.BoxScoreService.GetActive();
     Debug.WriteLine(results.ToList().Count);
     Assert.IsTrue(results.Count == 0);
 }
コード例 #2
0
 public void DailyFantasyPlayers_2014_SEP_21_Count_Equals_514()
 {
     var client = new FantasyDataClient();
     var results = client.DailyFantasyService.GetDailyFantasyPlayers(new DateTime(2014, 9, 21));
     Debug.WriteLine(results.ToList().Count);
     Assert.IsTrue(results.Count == 514);
 }
コード例 #3
0
        public void CheckIfGameInProgress_Return_False()
        {
            var client = new FantasyDataClient();

            var response = client.GameService.IsGameInProgress;

            Assert.IsFalse(response);
        }
コード例 #4
0
 public void CurrentWeek_Is_0()
 {
     var client = new FantasyDataClient();
     var response = client.SeasonService.CurrentWeek;
     Assert.IsTrue(response == 0);
 }
コード例 #5
0
 public void GetBoxScoresForSeasonWeek_2014_Week1_Count_Equals_16()
 {
     var client = new FantasyDataClient();
     var result = client.BoxScoreService.GetForSeasonAndWeek(2014, 1);
     Assert.IsTrue(result.Count == 16);
 }
コード例 #6
0
 public void GetActiveTeams_Count_Equals_32()
 {
     var client = new FantasyDataClient();
     var results = client.TeamService.Get();
     Assert.IsTrue(results.Count == 32);
 }
コード例 #7
0
 public async Task GetScheduleBySeasonAsync_2015_RegularSeason_IsNotNull()
 {
     var client = new FantasyDataClient();
     var response = await client.ScheduleService.GetAsync(2015, SeasonTypes.REGULAR);
     Assert.IsNotNull(response);
 }
コード例 #8
0
 public void GetPlayersSeasonStatsByTeam_DEN_Count_Equals_59()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerSeasonStatService.GetByTeam(TeamTypes.DEN, 2014);
     Assert.IsTrue(response.Count == 59);
 }
コード例 #9
0
 public void GetPlayersGameStatsByTeamForSeasonAndWeek_2014_Week1_DEN_Count_Equals_53()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerGameStatService.GetByTeamAndWeek(TeamTypes.DEN, 2014, 1);
     Assert.IsTrue(response.Count == 53);
 }
コード例 #10
0
 public void GetGameStatsForSeason_2014_Count_Equals_256()
 {
     var client = new FantasyDataClient();
     var response = client.GameService.GetBySeason(2014);
     Assert.IsTrue(response.Count == 256);
 }
コード例 #11
0
 public void GetFreeAgents_Count_Greater_Than_Zero()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerService.GetFreeAgents();
     Assert.IsTrue(response.Count > 0);
 }
コード例 #12
0
 public void GetFantasyDefenseForSeason_2014_Count_Equals_32()
 {
     var client = new FantasyDataClient();
     var response = client.TeamDefenseService.GetSeasons(2014);
     Assert.IsTrue(response.Count == 32);
 }
コード例 #13
0
 public void GetFantasyDefenseByGame_2014_Week_1_Count_Equals_32()
 {
     var client = new FantasyDataClient();
     var response = client.TeamDefenseService.GetGames(2014, 1);
     Assert.IsTrue(response.Count == 32);
 }
コード例 #14
0
 public void GetDeltaBoxScores_Last_1_Minutes_Count_Equals_Zero()
 {
     var client = new FantasyDataClient();
     var response = client.BoxScoreService.RecentlyUpdated(1);
     Assert.IsTrue(response.Count == 0);
 }
コード例 #15
0
 public void Get_PlayerGameStats_ForPeytonManning_Week1_2014_PassingTouchdowns_Equals_3()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerGameStatService.GetByGame(7328, 1, 2014);
     Assert.IsTrue(response.PassingTouchdowns == 3);
 }
コード例 #16
0
 public void GetPlayerSeasonStats_PeytonManning_2014_PassingTouchdowns_Equals_39()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerSeasonStatService.GetByPlayer(7328, 2014);
     Assert.IsTrue(response[0].PassingTouchdowns == 39);
 }
コード例 #17
0
 public void GetInjuriesForSeasonAndWeek_2014_Week1_Count_Equals_308()
 {
     var client = new FantasyDataClient();
     var response = client.InjuryService.GetByWeek(2014, 1);
     Assert.IsTrue(response.Count == 308);
 }
コード例 #18
0
 public void GetPlayerStatsAndNews_PeytonManning_2014_IsNotNull()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerService.Get(7328);
     Assert.IsNotNull(response);
 }
コード例 #19
0
 public void GetInjuriesForSeasonAndWeekForTeam_2014_Week1_DEN_Count_Equals_10()
 {
     var client = new FantasyDataClient();
     var response = client.InjuryService.GetByWeekAndTeam(TeamTypes.DEN, 2014, 1);
     Assert.IsTrue(response.Count == 10);
 }
コード例 #20
0
 public void GetPlayersGameStatsForSeasonAndWeek_2014_Week1_Count_Equals_1696()
 {
     var client = new FantasyDataClient();
     var response = client.PlayerGameStatService.GetByWeek(2014, 1);
     Assert.IsTrue(response.Count == 1696);
 }
コード例 #21
0
 public void LastCompletedSeason_Is_2014()
 {
     var client = new FantasyDataClient();
     var response = client.SeasonService.LastCompletedSeason;
     Assert.IsTrue(response == 2014);
 }
コード例 #22
0
 public void GetScheduleBySeason_2015_RegularSeason_IsNotNull()
 {
     var client = new FantasyDataClient();
     var response = client.ScheduleService.Get(2015, SeasonTypes.REGULAR);
     Assert.IsNotNull(response);
 }
コード例 #23
0
 public void LastCompletedWeek_Is_4()
 {
     var client = new FantasyDataClient();
     var response = client.SeasonService.LastCompletedWeek;
     Assert.IsTrue(response == 4);
 }
コード例 #24
0
 public void GetLiveBoxScores_Count_Equals_Zero()
 {
     var client = new FantasyDataClient();
     var response = client.BoxScoreService.GetLive();
     Assert.IsTrue(response.Count == 0);
 }
コード例 #25
0
 public void Get_News_Count_For_Denver_GreaterThanZero()
 {
   var client = new FantasyDataClient();
   var response = client.NewsService.GetForTeam(TeamTypes.DEN);
   Assert.IsTrue(response.Count > 0);
 }
コード例 #26
0
 public void GetBoxScore_2014_Week1_WAS_AwayAssistedTackles_Equals_10()
 {
     var client = new FantasyDataClient();
     var result = client.BoxScoreService.Get(2014, 1, "WAS");
     Assert.IsTrue(result.Game.AwayAssistedTackles == 10);
 }
コード例 #27
0
 public void Get_News_Count_For_PlayerID4631_GreaterThanZero()
 {
   var client = new FantasyDataClient();
   var response = client.NewsService.GetForPlayer(4631);
   Assert.IsTrue(response.Count > 0);
 }
コード例 #28
0
 public void GetByWeekForSeason_2014_Count_Equals_32()
 {
     var client = new FantasyDataClient();
     var result = client.SeasonService.GetByeWeeks(2014);
     Assert.IsTrue(result.Count == 32);
 }
コード例 #29
0
 public void CurrentSeason_Is_2014()
 {
     var client = new FantasyDataClient();
     var response = client.SeasonService.CurrentSeason;
     Assert.IsTrue(response == 2014);
 }