public void AllLeaguesFromApi() { var repo = new LeagueRepository(); var result = repo.GetByDiscipline("Football"); Assert.IsTrue(result.Count > 0); }
public void GetLeagueById() { var repo = new LeagueRepository(); var result = repo.GetByDiscipline("Football"); int id = 1; var x = repo.GetById(1); Assert.IsTrue(x.Matches.Count > 0); }
public void GetLeagueById() { var repo = new LeagueRepository(); var result = repo.GetByDiscipline("Football"); int id = 1; var x = repo.GetById(1); Assert.IsTrue(x.Matches.Count > 0); }
public IEnumerable <League> GetLeaguesByDiscipline(int id) { DisciplineRepository _rep = new DisciplineRepository(); Discipline _discipline = _rep.GetById(id); if (_discipline != null) { var qresult = _repository.GetByDiscipline(_discipline); return(qresult.Select(o => new APILeague(o)).ToList()); } return(null); }
public void AllLeaguesFromApi() { var repo = new LeagueRepository(); var result = repo.GetByDiscipline("Football"); Assert.IsTrue(result.Count>0); }