public Game(BuyIn buyIn) { this.buyIn = buyIn; players = new List<Player>(); payouts = new List<Payout>(); playersKnockedOut = new List<GameResult>(); }
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); }
public void BuyInAmount_ConstructedWith_ShouldStoreAmount() { const int testBuyInAmont = 20; BuyIn sut = new BuyIn(testBuyInAmont); int result = sut.BuyInAmount; Assert.Equal(testBuyInAmont, result); }