示例#1
0
        protected override int AddStuff()
        {
            var team = new Team
            {
                Name        = "China",
                DisplayName = "CHN",
                Description = "Balabala"
            };

            Mgr.Add(team);
            Assert.IsTrue(team.Id > 0);
            return(team.Id);
        }
示例#2
0
        protected override int AddStuff()
        {
            var teamId = AddTeam(new TeamMgr());
            var player = new Player
            {
                Name        = "Buffon",
                DisplayName = "Buffon",
                Number      = 1,
                TeamId      = teamId
            };

            Mgr.Add(player);
            Assert.IsTrue(player.Id > 0);
            return(player.Id);
        }
示例#3
0
        protected override int AddStuff()
        {
            var mgr      = new ScheduleMgr();
            var id       = AddSchedule(mgr);
            var schedule = mgr.GetItem(id);

            Assert.IsNotNull(schedule);
            var playerId = AddPlayer(schedule.HostId, "Buffon", 1);
            var data     = new GameData
            {
                ScheduleId  = id,
                PlayerId    = playerId,
                YellowCard1 = DateTime.Now
            };

            Mgr.Add(data);
            return(data.Id);
        }