Esempio n. 1
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);
        }
        public void Get_BoxScore_ForGameID_14620_InningCount_Equals_9()
        {
            var client = new FantasyDataClient();
            var result = client.BoxScoreService.Get(14620);

            Assert.IsTrue(result.Innings.Count == 9);
        }
        public void Get_GamesForDate_2014_JUL_31_Count_Equals11()
        {
            var client = new FantasyDataClient();
            var result = client.GameService.GetByDate(new DateTime(2014, 7, 31));

            Assert.IsTrue(result.Count == 11);
        }
        public void Get_PlayerSeasonStats_2014_Count_Equals_1550()
        {
            var client = new FantasyDataClient();
            var result = client.PlayerSeasonService.Get(2014);

            Assert.IsTrue(result.Count == 1550);
        }
        public void Get_StadiumDetails_Count_GreaterThanZero()
        {
            var client = new FantasyDataClient();
            var result = client.StadiumService.Get();

            Assert.IsTrue(result.Count > 0);
        }
Esempio n. 6
0
        public void GetScheduleBySeason_2015_RegularSeason_IsNotNull()
        {
            var client   = new FantasyDataClient();
            var response = client.ScheduleService.Get(2015, SeasonTypes.REGULAR);

            Assert.IsNotNull(response);
        }
Esempio n. 7
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);
        }
Esempio n. 8
0
        public void LastCompletedSeason_Is_2014()
        {
            var client   = new FantasyDataClient();
            var response = client.SeasonService.LastCompletedSeason;

            Assert.IsTrue(response == 2014);
        }
Esempio n. 9
0
        public void LastCompletedWeek_Is_4()
        {
            var client   = new FantasyDataClient();
            var response = client.SeasonService.LastCompletedWeek;

            Assert.IsTrue(response == 4);
        }
Esempio n. 10
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);
        }
Esempio n. 11
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);
        }
Esempio n. 12
0
        public void GetGameStatsForSeason_2014_Count_Equals_256()
        {
            var client   = new FantasyDataClient();
            var response = client.GameService.GetBySeason(2014);

            Assert.IsTrue(response.Count == 256);
        }
Esempio n. 13
0
        public void GetFantasyDefenseForSeason_2014_Count_Equals_32()
        {
            var client   = new FantasyDataClient();
            var response = client.TeamDefenseService.GetSeasons(2014);

            Assert.IsTrue(response.Count == 32);
        }
Esempio n. 14
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);
        }
Esempio n. 15
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);
        }
Esempio n. 16
0
        public void GetLiveBoxScores_Count_Equals_Zero()
        {
            var client   = new FantasyDataClient();
            var response = client.BoxScoreService.GetLive();

            Assert.IsTrue(response.Count == 0);
        }
Esempio n. 17
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);
        }
Esempio n. 18
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);
        }
Esempio n. 19
0
        public async Task GetScheduleBySeasonAsync_2015_RegularSeason_IsNotNull()
        {
            var client   = new FantasyDataClient();
            var response = await client.ScheduleService.GetAsync(2015, SeasonTypes.REGULAR);

            Assert.IsNotNull(response);
        }
Esempio n. 20
0
        public void Get_News_Count_For_PlayerID4631_GreaterThanZero()
        {
            var client   = new FantasyDataClient();
            var response = client.NewsService.GetForPlayer(4631);

            Assert.IsTrue(response.Count > 0);
        }
Esempio n. 21
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);
        }
Esempio n. 22
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);
        }
        public void Get_PlayersByTeam_NYY_Count_GreaterThanZero()
        {
            var client = new FantasyDataClient();
            var result = client.PlayerService.GetByTeam("NYY");

            Assert.IsTrue(result.Count > 0);
        }
Esempio n. 24
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);
        }
        public void Get_ActiveTeams_Count_Equals_30()
        {
            var client = new FantasyDataClient();
            var result = client.TeamService.Get();

            Assert.IsTrue(result.Count == 30);
        }
Esempio n. 26
0
        public void GetPlayerStatsAndNews_PeytonManning_2014_IsNotNull()
        {
            var client   = new FantasyDataClient();
            var response = client.PlayerService.Get(7328);

            Assert.IsNotNull(response);
        }
        public void Get_FreeAgents_Count_GreaterThanZero()
        {
            var client = new FantasyDataClient();
            var result = client.PlayerService.GetFreeAgents();

            Assert.IsTrue(result.Count > 0);
        }
Esempio n. 28
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);
        }
        public void Get_GamesBySeason_2014_Count_Equals_2498()
        {
            var client = new FantasyDataClient();
            var result = client.GameService.GetBySeason(2014);

            Assert.IsTrue(result.Count == 2498);
        }
Esempio n. 30
0
        public void CurrentWeek_Is_0()
        {
            var client   = new FantasyDataClient();
            var response = client.SeasonService.CurrentWeek;

            Assert.IsTrue(response == 0);
        }