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"); }
/// <summary> /// Constructor. /// </summary> /// <param name="token">Auth token.</param> public FootballService(string token) { client = new FootballClient(token); }