Example #1
0
        public void TestGetDeckReturnsCardDeck()
        {
            var banker = new TraditionalBanker(new[] { 0, 1 });
            var jailRoster = new TraditionalJailRoster(banker);
            var locationManager = new GameBoard(banker);
            var chanceFactory = new ChanceFactory(banker, jailRoster, locationManager, new FakeDice());

            var deck = chanceFactory.GetCards();
            Assert.That(deck.Count(), Is.EqualTo(16));
        }
Example #2
0
 public TraditionalCardDeckFactory(IBanker banker, IJailRoster jailRoster,
                                   GameBoard board, IDice dice)
 {
     this.communityChestFactory = new CommunityChestFactory(banker, jailRoster, board);
     this.chanceFactory         = new ChanceFactory(banker, jailRoster, board, dice);
 }
 public TraditionalCardDeckFactory(IBanker banker, IJailRoster jailRoster,
     GameBoard board, IDice dice)
 {
     this.communityChestFactory = new CommunityChestFactory(banker, jailRoster, board);
     this.chanceFactory = new ChanceFactory(banker, jailRoster, board, dice);
 }