コード例 #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");
        }
コード例 #2
0
ファイル: LeagueTableService.cs プロジェクト: allanweber/way2
 public LeagueTableService(
     IMapper mapper,
     FootballFacadeService footballFacadeService
     )
 {
     this.Mapper = mapper;
     this.FootballFacadeService = footballFacadeService;
 }
コード例 #3
0
        public async Task TestGetCompetitions()
        {
            FootballFacadeService facade = new FootballFacadeService();

            var competitions = await facade.GetCompetitions();

            Assert.True(competitions.Any(), "Deveria retornar competições");
        }
コード例 #4
0
ファイル: CompetitionService.cs プロジェクト: allanweber/way2
 public CompetitionService(
     IMapper mapper,
     FootballFacadeService footballFacadeService
     )
 {
     this.Mapper = mapper;
     this.FootballFacadeService = footballFacadeService;
 }