예제 #1
0
 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));
 }
예제 #2
0
 public Avitar(IAvitarRepository repository, ILogger <Avitar> logger)
 {
     Repository = repository;
     Logger     = logger;
 }
예제 #3
0
 public CreateAvitar(IAvitarRepository playerRepository, IAvitarIdentifierProvider identifierProvider)
 {
     AvitarRepository   = playerRepository ?? throw new ArgumentNullException(nameof(playerRepository));
     IdentifierProvider = identifierProvider ?? throw new ArgumentNullException(nameof(identifierProvider));
 }
예제 #4
0
 public CreateAvitar(IAvitarRepository repository, ILogger <CreateAvitar> logger)
 {
     Repository = repository;
     Logger     = logger;
 }