public PayoutService(ILogger <PayoutService> logger, IUserService userService, IGameTransactionService gameTransactionService, IGameHistoryService gameHistoryService) { this.logger = logger; this.userService = userService; this.gameTransactionService = gameTransactionService; this.gameHistoryService = gameHistoryService; }
public CardGameController( GameContext gameContext, ICardDrawingService drawingService, ICardScoringService scoringService, IGamePlayingService playingService, IGameHistoryService historyService) { _gameContext = gameContext ?? throw new ArgumentNullException(nameof(gameContext)); _drawingService = drawingService ?? throw new ArgumentNullException(nameof(drawingService)); _scoringService = scoringService ?? throw new ArgumentNullException(nameof(scoringService)); _playingService = playingService ?? throw new ArgumentNullException(nameof(playingService)); _historyService = historyService ?? throw new ArgumentNullException(nameof(historyService)); }
public GameService(GameModuleCollection gameModules, IUserService userService, IBonusService bonusService, IPayoutService payoutService, IGameHistoryService gameHistoryService, IGameTransactionService transactionService, IDistributedCache cache, CachedSettings cachedSettings, IValidationStrategy validator, ILogger <GameService> logger) { this.gameModules = gameModules; this.userService = userService; this.bonusService = bonusService; this.payoutService = payoutService; this.gameHistoryService = gameHistoryService; this.transactionService = transactionService; this.cache = cache; this.cachedSettings = cachedSettings; this.validator = validator; this.logger = logger; }
public GameHistoryController(IGameHistoryService gameHistoryService) { _gameHistoryService = gameHistoryService; }