Example #1
0
 public DeckTest(
     [NotNull] IRandom random,
     [NotNull] IPreviousCardValueFinder previous,
     [NotNull] INextCardValueFinder next,
     [NotNull] IEnumerable <ICard> cards)
     : base(random,
            previous,
            next,
            cards)
 {
 }
Example #2
0
        protected Deck(
            [NotNull] IRandom random,
            [NotNull] IPreviousCardValueFinder previous,
            [NotNull] INextCardValueFinder next,
            [NotNull] IEnumerable <ICard> cards)
        {
            m_Random   = random;
            m_Previous = previous;
            m_Next     = next;
            IEnumerable <ICard> cardsInDeck = cards as ICard[] ?? cards.ToArray();

            CardsInDeck = cardsInDeck;
            m_Cards     = cardsInDeck.ToList();
        }