예제 #1
0
 public Game(BuyIn buyIn)
 {
     this.buyIn = buyIn;
     players = new List<Player>();
     payouts = new List<Payout>();
     playersKnockedOut = new List<GameResult>();
 }
예제 #2
0
        public void When_a_game_is_asked_for_its_payout_structure_it_delegates_it_to_the_Payout_object_that_was_injected()
        {
            var payoutStructure = new BuyIn();

            var game = new Game(payoutStructure);

            Assert.Equal(payoutStructure, game.BuyIn);
        }
예제 #3
0
        public void BuyInAmount_ConstructedWith_ShouldStoreAmount()
        {
            const int testBuyInAmont = 20;
            BuyIn sut = new BuyIn(testBuyInAmont);

            int result = sut.BuyInAmount;

            Assert.Equal(testBuyInAmont, result);
        }