public GameRound CreateGameRound( GameInfo gameInfo, SavedRoundState roundState) { return(new GameRound( gameInfo.Id, roundState, loggerFactory.CreateLogger <GameRound>())); }
public GameRound(int gameId, SavedRoundState roundState, ILogger <GameRound> logger) { this.gameId = gameId; this.roundState = roundState ?? throw new ArgumentNullException(nameof(roundState)); this.logger = logger ?? NullLogger <GameRound> .Instance; }