예제 #1
0
        public static Season GetSeasonWithOneRace()
        {
            var season = new Season()
            {
                Id = ++SeasonId,
                Name = "Test Season",
                PointsSystemTypeName = "atomicf1.domain.PointsSystem2011, atomicf1.domain"
            };

            season.AddRace(Race(season, new List<RaceEntry>() {
                RaceEntry(season.PointsSystem, 1),
                RaceEntry(season.PointsSystem, 2),
                RaceEntry(season.PointsSystem, 3),
                RaceEntry(season.PointsSystem, 4),
                RaceEntry(season.PointsSystem, 5),
                RaceEntry(season.PointsSystem, 6),
                RaceEntry(season.PointsSystem, 7),
                RaceEntry(season.PointsSystem, 8),
                RaceEntry(season.PointsSystem, 9),
                RaceEntry(season.PointsSystem, 10),
                RaceEntry(season.PointsSystem, 11) }
                ));

            return season;
        }
예제 #2
0
        public static Season Season()
        {
            var season = new Season()
                             {
                                 Id = ++SeasonId,
                                 Name = "Test Season"
                             };

            season.AddRace(new Race() {Id = 1});
            season.AddRace(new Race() {Id = 2});

            return season;
        }