public TurnEngine(IGameState gameState, IGameActionResolver gameActionResolver, ICardResolver cardResolver, IGameStateNotifier gameStateNotifier, ILogger <TurnEngine> logger = null) { _gameState = gameState ?? throw new ArgumentNullException(nameof(gameState)); _gameActionResolver = gameActionResolver ?? throw new ArgumentNullException(nameof(gameActionResolver)); _cardResolver = cardResolver ?? throw new ArgumentNullException(nameof(cardResolver)); _gameStateNotifier = gameStateNotifier ?? throw new ArgumentNullException(nameof(gameStateNotifier)); _logger = logger; }
public GameActionResolver(ICardResolver cardResolver, IServiceProvider services) { _cardResolver = cardResolver ?? throw new ArgumentNullException(nameof(cardResolver)); _services = services ?? throw new ArgumentNullException(nameof(services)); }