public PlayersManager(IPlayersQuantityType players,
                       IRacingCardManager racingCardManager,
                       IGenericMixStrategy mixStrategy)
 {
     _mixStrategy       = mixStrategy;
     _players           = players;
     _racingCardManager = racingCardManager;
 }
        public BoardGameShould()
        {
            _racingCardManager = new RacingCardManager(_racingCardsFactory,
                                                       new RandomMixStrategy(),
                                                       _racingCardOnDeskManager);

            _boardGameFactory = new BoardGameFactory(new PlayersManagerFactory(new RandomMixStrategy(),
                                                                               _racingCardManager),
                                                     _racingCardOnDeskManager);
            _playerOne = CreateUser();
            _playerTwo = CreateUser();
            _sut       = _boardGameFactory.ToTwoPlayer(_playerOne, _playerTwo);
        }
Beispiel #3
0
        public RegularPlayer(IUserCallbacksNotifications userCallbacksNotifications,
                             IBetCardsPlayerManager betCardsPlayerManager,
                             IRacingCardManager racingCardManager,
                             IPreConditionRaicingCards preConditionRaicingCards)
        {
            if (userCallbacksNotifications == null)
            {
                throw new ArgumentException(nameof(userCallbacksNotifications));
            }

            _userCallbacksNotifications = userCallbacksNotifications;
            _betCardsPlayerManager      = betCardsPlayerManager;
            _racingCardManager          = racingCardManager;
            _preConditionRaicingCards   = preConditionRaicingCards;
        }
Beispiel #4
0
 public PlayersManagerFactory(IGenericMixStrategy genericMixStrategy,
                              IRacingCardManager racingCardManager)
 {
     _genericMixStrategy = genericMixStrategy;
     _racingCardManager  = racingCardManager;
 }
 public PlayerFactory(IRacingCardManager racingCardManager,
                      IPreConditionRaicingCardsFactory preConditionRaicingCardsFactory)
 {
     _racingCardManager = racingCardManager;
     _preConditionRaicingCardsFactory = preConditionRaicingCardsFactory;
 }