Exemple #1
0
        public void Should_GetNflPlayerUrl_ForNegativeInput()
        {
            //arrange
            int playerId = -55555;
            IUrlConfigurationProvider urlConfigurationProvider = new HardcodedUrlConfigurationProvider();

            //act
            string url = urlConfigurationProvider.GetNflPlayerEndpoint(playerId);

            //assert
            url.Should().BeEquivalentTo("http://www.espn.com/nfl/player/_/id/-55555");
        }
Exemple #2
0
        public void Should_GetRecentActivityUrl_ForNegativeInput()
        {
            //arrange
            int leagueId = -5555;
            int year     = -2018;
            IUrlConfigurationProvider urlConfigurationProvider = new HardcodedUrlConfigurationProvider();

            //act
            string url = urlConfigurationProvider.GetRecentActivityEndpoint(leagueId, year);

            //assert
            url.Should().BeEquivalentTo("http://games.espn.com/ffl/api/v2/recentActivity?leagueId=-5555&seasonId=-2018");
        }
Exemple #3
0
        public void Should_GetScoreboardUrl_ForValidInput()
        {
            //arrange
            int leagueId = 5555;
            int year     = 2018;
            IUrlConfigurationProvider urlConfigurationProvider = new HardcodedUrlConfigurationProvider();

            //act
            string url = urlConfigurationProvider.GetScoreboardEndpoint(leagueId, year);

            //assert
            url.Should().BeEquivalentTo("http://games.espn.com/ffl/api/v2/scoreboard?leagueId=5555&seasonId=2018");
        }