コード例 #1
0
        public static ITournament GetTournament(int id = 0)
        {
            var sef = new TestSportEntityFactoryBuilder();

            sef.InitializeSportEntities();
            sef.LoadTournamentMissingValues();
            return((Tournament)sef.GetNewTournament());
        }
コード例 #2
0
        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);
        }