Esempio n. 1
0
        public async Task Should_GetNflPlayerNameForId_ForValidInput()
        {
            //arrange
            int playerId = 13295;
            EspnFantasyFootballClient espnFantasyFootballClient = new EspnFantasyFootballClient();

            //act
            string playerName = await espnFantasyFootballClient.GetNflPlayerNameForId(playerId);

            //assert
            playerName.Should().NotBeNull();
        }
Esempio n. 2
0
        public async Task Should_GetRecentActivityAsync_ForValidInput()
        {
            //arrange
            int leagueId = 526113;
            int year     = 2018;
            EspnFantasyFootballClient espnFantasyFootballClient = new EspnFantasyFootballClient();

            //act
            RecentActivity recentActivity = await espnFantasyFootballClient.GetRecentActivity(leagueId, year);

            //assert
            recentActivity.Should().NotBeNull();
        }
Esempio n. 3
0
        public async Task Should_GetScoreboardAsync_ForValidInput()
        {
            //arrange
            int leagueId = 526113;
            int year     = 2018;
            EspnFantasyFootballClient espnFantasyFootballClient = new EspnFantasyFootballClient();

            //act
            LeagueScoreboard leagueScoreboard = await espnFantasyFootballClient.GetScoreboardAsync(leagueId, year);

            //assert
            leagueScoreboard.Should().NotBeNull();
        }