public void BidsToBiddings() { IBiddings biddings = new Biddings(); var bidGenerator = new Mock<IBidGenerator>(); IPlayer player = new Player(bidGenerator.Object); bidGenerator.Setup(a => a.Bid()).Returns(1); player.BidsTo(biddings); Assert.That(biddings.BidOf(player), Is.EqualTo(1)); }
public void Init() { _Players = new Mock<IFourPlayers>(); _Biddings = new Biddings(); _Player1 = new Player(); _Player2 = new Player(); _Player3 = new Player(); _Player4 = new Player(); _Players.Setup(a => a.Player1).Returns(_Player1); _Players.Setup(a => a.Player2).Returns(_Player2); _Players.Setup(a => a.Player3).Returns(_Player3); _Players.Setup(a => a.Player4).Returns(_Player4); }