public static ITournament GetTournament(int id = 0) { var sef = new TestSportEntityFactoryBuilder(); sef.InitializeSportEntities(); sef.LoadTournamentMissingValues(); return((Tournament)sef.GetNewTournament()); }
public static List <ITournament> GetTournamentList(int count) { var sef = new TestSportEntityFactoryBuilder(); sef.InitializeSportEntities(); sef.LoadTournamentMissingValues(); var tours = new List <ITournament>(); for (var i = 0; i < count; i++) { tours.Add(sef.GetNewTournament()); } return(tours); }