Esempio n. 1
0
        public GamePlayService(
            IGameDeckCardCollectionRepository gameDeckCardCollectionRepository,
            IGameDeckRepository gameDeckRepository,
            IGameRepository gameRepository,
            IMoveRepository moveRepository,
            ITurnRepository turnRepository,
            IDataMapper <GameDeckCardCollectionData, GameDeckCardCollectionModel> gameDeckCardCollectionMapper,
            IDataMapper <GameDeckData, GameDeckModel> gameDeckMapper,
            ICardService cardService,
            IGameDataService gameDataService,
            IGameValidator gameValidator,
            IMoveValidator moveValidator
            )
        {
            _gameDeckCardCollectionRepository = gameDeckCardCollectionRepository;
            _gameDeckRepository = gameDeckRepository;
            _gameRepository     = gameRepository;
            _moveRepository     = moveRepository;
            _turnRepository     = turnRepository;

            _gameDeckCardCollectionMapper = gameDeckCardCollectionMapper;
            _gameDeckMapper = gameDeckMapper;

            _cardService     = cardService;
            _gameDataService = gameDataService;

            _gameValidator = gameValidator;
            _moveValidator = moveValidator;
        }
Esempio n. 2
0
        public GameService(
            IGameValidator gameValidator,
            IDeckRepository deckRepository,
            IGameDeckRepository gameDeckRepository,
            IGameRepository gameRepository,
            IGameUserRepository gameUserRepository,
            ITurnRepository turnRepository,
            IDataMapper <GameData, GameModel> gameMapper,
            IDataMapper <GameCreateData, GameCreateModel> gameCreateMapper,
            IDataMapper <GameDeckCardCollectionData, GameDeckCardCollectionModel> gameDeckCardCollectionMapper,
            IDataMapper <GameDeckData, GameDeckModel> gameDeckMapper,
            IDataMapper <GameUserData, GameUserModel> gameUserMapper,
            ICardService cardService
            )
        {
            _gameValidator = gameValidator;

            _deckRepository     = deckRepository;
            _gameDeckRepository = gameDeckRepository;
            _gameRepository     = gameRepository;
            _gameUserRepository = gameUserRepository;
            _turnRepository     = turnRepository;

            _gameMapper                   = gameMapper;
            _gameCreateMapper             = gameCreateMapper;
            _gameDeckCardCollectionMapper = gameDeckCardCollectionMapper;
            _gameDeckMapper               = gameDeckMapper;
            _gameUserMapper               = gameUserMapper;

            _cardService = cardService;
        }
Esempio n. 3
0
 public AddUserToGameHandler(
     IDeckRepository deckRepository,
     IGameDeckRepository gameDeckRepository,
     IGameRepository gameRepository,
     ITurnRepository turnRepository
     )
 {
     _deckRepository     = deckRepository;
     _gameDeckRepository = gameDeckRepository;
     _gameRepository     = gameRepository;
     _turnRepository     = turnRepository;
 }
Esempio n. 4
0
        public GameDeckHelper(
            IGameDeckRepository gameDeckRepository,
            IDataMapper <GameDeckCardCollectionData, GameDeckCardCollectionModel> gameDeckCardCollectionMapper,
            IDataMapper <GameDeckData, GameDeckModel> gameDeckMapper,
            IGameDataService gameDataService,
            ICardService cardService
            )
        {
            _gameDeckRepository = gameDeckRepository;

            _gameDeckCardCollectionMapper = gameDeckCardCollectionMapper;
            _gameDeckMapper = gameDeckMapper;

            _gameDataService = gameDataService;
            _cardService     = cardService;
        }
Esempio n. 5
0
        public GameService(
            IGameValidator gameValidator,
            IDeckRepository deckRepository,
            IGameDeckRepository gameDeckRepository,
            IGameRepository gameRepository,
            ITurnRepository turnRepository,
            IDataMapper <GameData, GameModel> gameMapper,
            IDataMapper <GameCreateData, GameCreateModel> gameCreateMapper,
            IGameDataService gameDataService
            )
        {
            _gameValidator = gameValidator;

            _deckRepository     = deckRepository;
            _gameDeckRepository = gameDeckRepository;
            _gameRepository     = gameRepository;
            _turnRepository     = turnRepository;

            _gameMapper       = gameMapper;
            _gameCreateMapper = gameCreateMapper;

            _gameDataService = gameDataService;
        }