Esempio n. 1
0
        public Deck(IShuffelCards cardShuffler, ICreateASetOfCards setOfCards)
        {
            _cardShuffler = cardShuffler;
            _setOfCards   = setOfCards;
            _cards        = new Stack <Card>();

            Reset();
        }
Esempio n. 2
0
        public Deck(IShuffelCards cardShuffler, ICreateASetOfCards setOfCards)
        {
            _cardShuffler = cardShuffler;
            _setOfCards = setOfCards;
            _cards = new Stack<Card>();

            Reset();
        }
Esempio n. 3
0
 public static Deck Create(IShuffelCards cardShuffler, ICreateASetOfCards setOfCards)
 {
     return(new Deck(cardShuffler, setOfCards));
 }
Esempio n. 4
0
 public static Deck Create(IShuffelCards cardShuffler, ICreateASetOfCards setOfCards)
 {
     return new Deck(cardShuffler, setOfCards);
 }
Esempio n. 5
0
 public void SetUp()
 {
     _setOfCards   = new ANormalDeck();
     _shuffelCards = new TestShuffler();
     _deck         = new Deck(_shuffelCards, _setOfCards);
 }