Example #1
0
        public async Task TestGetLeague(int id)
        {
            FootballFacadeService facade = new FootballFacadeService();

            var league = await facade.GetLeague(id);

            Assert.True(league.Standing.Any(), "Deveria retornar times");
        }
Example #2
0
 public LeagueTableService(
     IMapper mapper,
     FootballFacadeService footballFacadeService
     )
 {
     this.Mapper = mapper;
     this.FootballFacadeService = footballFacadeService;
 }
Example #3
0
        public async Task TestGetCompetitions()
        {
            FootballFacadeService facade = new FootballFacadeService();

            var competitions = await facade.GetCompetitions();

            Assert.True(competitions.Any(), "Deveria retornar competições");
        }
Example #4
0
 public CompetitionService(
     IMapper mapper,
     FootballFacadeService footballFacadeService
     )
 {
     this.Mapper = mapper;
     this.FootballFacadeService = footballFacadeService;
 }