Guest User

Untitled

a guest
Jul 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. Feature: Handling bidding on multiple items at the same time (in multiple auctions)
  2.  
  3. Scenario: Sniper bids for multiple items, wins both
  4. Given the sniper has joined auctions for items 54321 and 65432
  5. When the first auction reports that another bidder has bid 1000 (increment 98) # keeping track of which was first and second
  6. Then it gets back a bid of 1098 from the sniper # "it" is the first auction
  7. And the sniper shows it's bidding 1098 to top the previous price. # keeping track of increment to calculate "the previous price"
  8.  
  9. When the second auction reports that another bidder has bid 500 (increment 21)
  10. Then it gets back a bid of 521
  11. And the sniper shows it's bidding 1098 to top the previous price
  12.  
  13. When the first auction confirms that the sniper has bid 1098
  14. And the second auction confirms that the sniper has bid 521
  15. Then the sniper shows that it's winning both auctions with its last bid. # keeping track of last bid.
  16.  
  17. When both auctions close
  18. Then the sniper shows it's won both auctions with its last bid
Add Comment
Please, Sign In to add comment