Ejemplo n.º 1
0
        public CardCollectionService(
            ICardCollectionRepository cardCollectionRepository,
            ICardRepository cardRepository,
            IDataMapper <CardCollectionData, CardCollectionModel> cardCollectionDataMapper
            )
        {
            _cardCollectionRepository = cardCollectionRepository;
            _cardRepository           = cardRepository;

            _cardCollectionDataMapper = cardCollectionDataMapper;
        }
Ejemplo n.º 2
0
        public DeckService(
            ICardCollectionRepository cardCollectionRepository,
            ICardRepository cardRepository,
            IDeckRepository deckRepository,
            IDataMapper <DeckData, DeckModel> deckDataMapper
            )
        {
            _cardCollectionRepository = cardCollectionRepository;
            _cardRepository           = cardRepository;
            _deckRepository           = deckRepository;

            _deckDataMapper = deckDataMapper;
        }