public NewGameCommandHandler(IDocumentStore documentStore, IGameGenerator gameGenerator, IPlayerMarksGenerator playerMarksGenerator, IGuidProvider guidProvider) { _documentStore = documentStore ?? throw new ArgumentNullException(nameof(documentStore)); _gameGenerator = gameGenerator ?? throw new ArgumentNullException(nameof(gameGenerator)); _playerMarksGenerator = playerMarksGenerator ?? throw new ArgumentNullException(nameof(playerMarksGenerator)); _guidProvider = guidProvider ?? throw new ArgumentNullException(nameof(guidProvider)); }
public JoinGameCommandHandler(IDocumentStore documentStore, IPlayerMarksGenerator playerMarksGenerator, IDateTimeProvider dateTimeProvider) { _documentStore = documentStore ?? throw new ArgumentNullException(nameof(documentStore)); _dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _playerMarksGenerator = playerMarksGenerator ?? throw new ArgumentNullException(nameof(playerMarksGenerator)); }