Exemplo n.º 1
0
        public async Task GivenValidLeagueCodeShouldRetrieveCorrectCompetition()
        {
            var serviceClient = MockServiceClient();

            var footballClient = new FootballClient(serviceClient, new AutoModelMapper());

            var result = await footballClient.GetCompetitionByLeagueCodeAsync("BL1");

            Assert.NotNull(result);
            Assert.True(result.LeagueCode == "BL1");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="token">Auth token.</param>
 public FootballService(string token)
 {
     client = new FootballClient(token);
 }