Beispiel #1
0
        public void StartBiddingWithStopPrice(FakeAuctionServer auction, int stopPrice)
        {
            StartApplication();

            _driver.StartBiddingFor(auction.ItemId, stopPrice);
            _driver.ShowsSniperStatus(auction.ItemId, 0, 0, SnipersTableModel.TextFor(SniperState.Joining));
        }
        public void StartBiddingIn(FakeAuctionServer auction)
        {
            _driver = new AuctionSniperDriver(new Main(), 1000);
            var main = new MainPresenter(_driver.Main);

            main.Main(SharedConstants.XMPP_HOSTNAME, SNIPER_XMPP_ID, SNIPER_PASSWORD, auction.ItemId);
            _driver.LaunchApplicationInItsOwnThread();
            _driver.ShowsSniperStatus(SharedConstants.STATUS_JOINING);
        }
Beispiel #3
0
 public void HasShownSniperIsLosing(FakeAuctionServer auction, int lastPrice, int lastBid)
 {
     _driver.ShowsSniperStatus(auction.ItemId, lastPrice, lastBid, SnipersTableModel.TextFor(SniperState.Losing));
 }
Beispiel #4
0
 public void ShowsSniperHasWonAuction(FakeAuctionServer auction, int lastPrice)
 {
     _driver.ShowsSniperStatus(auction.ItemId, lastPrice, lastPrice, SnipersTableModel.TextFor(SniperState.Won));
 }
Beispiel #5
0
 public void HasShownSniperIsWinning(FakeAuctionServer auction, int winningBid)
 {
     _driver.ShowsSniperStatus(auction.ItemId, winningBid, winningBid, SnipersTableModel.TextFor(SniperState.Winning));
 }
 public void Setup()
 {
     _auction     = new FakeAuctionServer("item-54321");
     _application = new ApplicationRunner();
 }