Пример #1
0
 public DeckService
 (
     IDeckRepository deckRepository,
     ICardRepository cardRepository,
     IDeckTypeRepository deckTypeRepository,
     IDeckCardRepository deckCardRepository,
     IDeckFileSystem deckFileSystem)
 {
     _deckRepository     = deckRepository;
     _cardRepository     = cardRepository;
     _deckTypeRepository = deckTypeRepository;
     _deckCardRepository = deckCardRepository;
     _deckFileSystem     = deckFileSystem;
 }
Пример #2
0
        public void SetUp()
        {
            _deckRepository     = Substitute.For <IDeckRepository>();
            _cardRepository     = Substitute.For <ICardRepository>();
            _deckTypeRepository = Substitute.For <IDeckTypeRepository>();
            var deckCardRepository = Substitute.For <IDeckCardRepository>();
            var deckFileSystem     = Substitute.For <IDeckFileSystem>();

            _sut = new DeckService
                   (
                _deckRepository,
                _cardRepository,
                _deckTypeRepository,
                deckCardRepository,
                deckFileSystem
                   );
        }
Пример #3
0
        public void SetUp()
        {
            _deckTypeRepository = Substitute.For<IDeckTypeRepository>();

            _sut = new DeckTypeService(_deckTypeRepository);
        }
Пример #4
0
 public DeckTypeService(IDeckTypeRepository deckTypeRepository)
 {
     _deckTypeRepository = deckTypeRepository;
 }