public JoinGameInteractor( IGameRepository gameRepository, IAvitarRepository avitarRepository, IDealerProvider dealerProvider, IGameIdentifierProvider gameIdProviders, IHandIdentifierProvider handIdProvider, ICardProvider cardProvider ) { GameRepository = gameRepository ?? throw new ArgumentNullException(nameof(gameRepository)); GameIdProviders = gameIdProviders ?? throw new ArgumentNullException(nameof(gameIdProviders)); HandIdProvider = handIdProvider ?? throw new ArgumentNullException(nameof(handIdProvider)); AvitarRepository = avitarRepository ?? throw new ArgumentNullException(nameof(avitarRepository)); DealerProvider = dealerProvider ?? throw new ArgumentNullException(nameof(dealerProvider)); CardProvider = cardProvider ?? throw new ArgumentNullException(nameof(cardProvider)); }
public Avitar(IAvitarRepository repository, ILogger <Avitar> logger) { Repository = repository; Logger = logger; }
public CreateAvitar(IAvitarRepository playerRepository, IAvitarIdentifierProvider identifierProvider) { AvitarRepository = playerRepository ?? throw new ArgumentNullException(nameof(playerRepository)); IdentifierProvider = identifierProvider ?? throw new ArgumentNullException(nameof(identifierProvider)); }
public CreateAvitar(IAvitarRepository repository, ILogger <CreateAvitar> logger) { Repository = repository; Logger = logger; }