コード例 #1
0
        public PlayerHandFactoryUnitTests()
        {
            // Arrange
            ICardFactory cardFactory = new CardFactory(new CardFactorySettings());

            _showDownSettings = new ShowdownSettings {
                HandSize = 5
            };
            ISimpleValidation <PlayerHandFactoryModel> validator = new PlayerHandFactoryModelValidation(_showDownSettings);

            _playerHandFactory = new PlayerHandFactory(validator, cardFactory);
        }
コード例 #2
0
 public PokerShowdownUnitTests()
 {
     _showDownSettings  = new ShowdownSettings();
     _playerHandFactory = new PlayerHandFactory(simpleValidation: new PlayerHandFactoryModelValidation(_showDownSettings), cardFactory: new CardFactory(new CardFactorySettings()));
     _pokerShowdown     = new PokerShowdown(showdownRulesFactory: new ShowdownRulesFactory(_showDownSettings, NullLoggerFactory.Instance), NullLoggerFactory.Instance);
 }
コード例 #3
0
 public App(IPlayerHandFactory playerHandFactory, IPokerShowdown pokerShowdown)
 {
     _playerHandFactory = playerHandFactory;
     _pokerShowdown     = pokerShowdown;
 }