You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the Order Service,
I want to submit order assignment events for specific bots,
so that the simulator can route each order to the selected bot object for validation and delivery processing.
Acceptance Criteria
Given the Order Service has selected a bot for an order
When it publishes an order assignment event
Then the event includes bot ID, order ID, requested items, and GPS destination.
Given the simulator receives an order assignment event
When the specified bot exists
Then the simulator routes the order assignment to that bot object.
Given the simulator receives an order assignment event
When the specified bot does not exist
Then the simulator publishes a BotNotFound order response event.
Given a bot object receives an order assignment
When the bot determines whether it has enough available, unreserved stock to fulfill the order
Then the bot validates the order and returns the appropriate order response.
Given the bot returns an order response
When the simulator receives that response
Then the simulator routes the response back through Event Hub for the Order Service and other consumers.
As the Order Service,
I want to submit order assignment events for specific bots,
so that the simulator can route each order to the selected bot object for validation and delivery processing.
Acceptance Criteria
Given the Order Service has selected a bot for an order
When it publishes an order assignment event
Then the event includes bot ID, order ID, requested items, and GPS destination.
Given the simulator receives an order assignment event
When the specified bot exists
Then the simulator routes the order assignment to that bot object.
Given the simulator receives an order assignment event
When the specified bot does not exist
Then the simulator publishes a
BotNotFoundorder response event.Given a bot object receives an order assignment
When the bot determines whether it has enough available, unreserved stock to fulfill the order
Then the bot validates the order and returns the appropriate order response.
Given the bot returns an order response
When the simulator receives that response
Then the simulator routes the response back through Event Hub for the Order Service and other consumers.