示例#1
0
        void AdvanceToNextInning(bool isBeginningOfGame = false)
        {
            GameInningDto gameInning = new GameInningDto()
            {
                InningNumber = GameInning.GetNextGameInningNumber(GameId),
                GameId       = GameId
            };

            GameInning.Save(gameInning);
            FillCurrentInning();
            AdvanceToNextInningTeam(isBeginningOfGame);
        }
示例#2
0
        public void GameNextInningTest()
        {
            Guid gameInningId = SeedGameInning();

            var gameInning = GameInning.GetGameInning(gameInningId);

            Assert.IsNotNull(gameInning);

            int nextInning = GameInning.GetNextGameInningNumber(gameInning.GameId);

            Assert.AreEqual(nextInning, 2);

            DeleteSeededGameInning(gameInningId);
        }