예제 #1
0
 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));
 }
예제 #2
0
 public DartThrowOperation(IGetGameByIdOperation getGame, IPersistGameCommand persistGame)
 {
     _persistGame = persistGame ?? throw new ArgumentNullException(nameof(persistGame));
     _getGame     = getGame ?? throw new ArgumentException(nameof(getGame));
 }