public void SniperBidsForMultipleItems() { _auction.StartSellingItem(); _auction2.StartSellingItem(); _application.StartBiddingIn(_auction, _auction2); _auction.HasReceivedJoinRequestFrom(ApplicationRunner.SniperXmppId); _auction2.HasReceivedJoinRequestFrom(ApplicationRunner.SniperXmppId); _auction.ReportPrice(1000, 98, "other bidder"); _auction.HasReceivedBid(1098, ApplicationRunner.SniperXmppId); _auction2.ReportPrice(500, 21, "other bidder"); _auction2.HasReceivedBid(521, ApplicationRunner.SniperXmppId); _auction.ReportPrice(1098, 97, ApplicationRunner.SniperXmppId); _application.HasShownSniperIsWinning(_auction, 1098); _auction2.ReportPrice(521, 21, ApplicationRunner.SniperXmppId); _application.HasShownSniperIsWinning(_auction2, 521); _auction.AnnounceClosed(); _auction2.AnnounceClosed(); _application.ShowsSniperHasWonAuction(_auction, 1098); _application.ShowsSniperHasWonAuction(_auction2, 521); }
public void SniperMakesAHigherBidButLoses() { _auction.StartSellingItem(); _application.StartBiddingIn(_auction); _auction.HasReceivedJoinRequestFromSniper(ApplicationRunner.SNIPER_XMPP_ID); _auction.ReportPrice(1000, 98, "other bidder"); _application.HasShownSniperIsBidding(); _auction.HasReceivedBid(1098, ApplicationRunner.SNIPER_XMPP_ID); _auction.AnnounceClosed(); _application.ShowsSniperHasLostAuction(); }