Example #1
0
 public GameService(
     MainDbContext context,
     CardSerializer cardSerializer,
     Mapper mapper,
     GameManagementService gameManagementService,
     ITransactionManager transactionManager,
     GameLogicService gameLogicService,
     DeckService deckService
     )
 {
     _context               = context;
     _cardSerializer        = cardSerializer;
     _mapper                = mapper;
     _gameManagementService = gameManagementService;
     _transactionManager    = transactionManager;
     _gameLogicService      = gameLogicService;
     _deckService           = deckService;
 }
Example #2
0
 public GameCreationService(
     MainDbContext context,
     ITransactionManager transactionManager,
     RandomGenerator randomGenerator,
     GameManagementService gameManagementService,
     DeckService deckService,
     CardSerializer cardSerializer,
     Mapper mapper
     )
 {
     _context               = context;
     _transactionManager    = transactionManager;
     _randomGenerator       = randomGenerator;
     _gameManagementService = gameManagementService;
     _deckService           = deckService;
     _cardSerializer        = cardSerializer;
     _mapper = mapper;
 }