Buy stocks acceptance

Contents

Buy stocks when price drops

Specification

When a notification that google stock price dropped by10 units was received        
Then the message sent to stock market is a bidding request for1000 google stocks        

Test results:

Test passed

Interesting Givens

Price drop -10
Stock name Google
Expected stocks to buy 1000

Received notification

http://localhost:9998/notification?stockName=Google&units=-10

Request received by stock market system

http://localhost:9999/buy?stockName=Google&units=1000