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

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