Esempio n. 1
0
        public CardFactoryUnitTests()
        {
            var cardFactorySettings = new CardFactorySettings
            {
                CardValueOverrides = new Dictionary <CardValueEnum, int> {
                    { CardValueEnum.Jack, 100 }
                }
            };

            _cardFactory = new CardFactory(cardFactorySettings);
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cardFactorySettings">Values that alter the card creation</param>
 public CardFactory(CardFactorySettings cardFactorySettings)
 {
     _cardFactorySettings = cardFactorySettings;
 }