public Game(GameId id, RoundContext roundContext, Deck deck, Teams teams, User owner, DateTime creationDate) : base(id) { RoundContext = roundContext; Deck = deck; Teams = teams; Owner = owner; CreationDate = creationDate; }
private RoundContext GetRoundContext(int totalRounds, int currentRound) { var roundContext = new RoundContext(totalRounds); while (roundContext.CurrentRoundNumber != currentRound) { roundContext.MoveToNextRound(); } return(roundContext); }