public DartyFunctions(ICreateGameOperation createGame, IDartThrowOperation dartThrow, IGetGameByIdOperation getGame, ICreateGameIdOperation generateGameId, ILogger <DartyFunctions> logger) : base(logger) { _createGame = createGame ?? throw new ArgumentNullException(nameof(createGame)); _dartThrow = dartThrow ?? throw new ArgumentNullException(nameof(dartThrow)); _getGame = getGame ?? throw new ArgumentNullException(nameof(getGame)); _generateGameId = generateGameId ?? throw new ArgumentNullException(nameof(generateGameId)); }
public DartThrowOperation(IGetGameByIdOperation getGame, IPersistGameCommand persistGame) { _persistGame = persistGame ?? throw new ArgumentNullException(nameof(persistGame)); _getGame = getGame ?? throw new ArgumentException(nameof(getGame)); }