void AdvanceToNextInning(bool isBeginningOfGame = false) { GameInningDto gameInning = new GameInningDto() { InningNumber = GameInning.GetNextGameInningNumber(GameId), GameId = GameId }; GameInning.Save(gameInning); FillCurrentInning(); AdvanceToNextInningTeam(isBeginningOfGame); }
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); }