public IPlayersManagerSecondStep GiveBetCards(IReadOnlyCollection <IBetCard> beatsCards) { if (beatsCards == null || beatsCards.Count != 5) { throw new ArgumentException(nameof(beatsCards)); } _players.GiveCards(_mixStrategy.Mix(beatsCards.ToList()).ToList()); return(this); }
protected void Differentes_Cards_To_All_Players(IPlayersQuantityType players, int countOfPlayers, int quantityOfDiferentsCardsPlayers) { List <IBetCard> list = new List <IBetCard>(); ListOfPlayers.ToList().ForEach(player => player.Setup(x => x.GiveCard(It.IsAny <IBetCard>())).Callback((IBetCard s) => list.Add(s))); players.GiveCards(BetCards); list.Count.Should().Be(quantityOfDiferentsCardsPlayers); list.Distinct().Count().Should().Be(list.Count); }