Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We need add more accept tests to go through the success and failed test with the TCC demo.
Let's take the online shipping as an example:
There are three service , order service, inventory service and payment service. We don't introduce the delivery service in time to simplify the demo.
When customer place a order, the inventory data need to be updated, and do the payment and update the customer account.
1. Customer place a order, and the inventory was updated in the method.
2.1 If the payment service is called successful, we need to confirm the inventory and updated the order states.
2.2 if the payment service is not called successful, we need to cancel the inventory release the goods.