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); }
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); }
public App(IPlayerHandFactory playerHandFactory, IPokerShowdown pokerShowdown) { _playerHandFactory = playerHandFactory; _pokerShowdown = pokerShowdown; }