private void SetProbabilities(PlayCardStrategyStub strategy, Dictionary <Card, Probability> dict) { foreach (var entry in dict) { strategy.ProbabilitiesToReturn.Add( strategy.Hand.First(cih => cih.Card == entry.Key), entry.Value); } }
private PlayCardStrategyStub InitPlayStrategy(IGameProvider gameProvider) { var playCardStrategyMock = new PlayCardStrategyStub(); var game = new Game(gameProvider, 4); var player = new Player(game); playCardStrategyMock.Player = player; return(playCardStrategyMock); }