Closed SamAllen83 closed 5 months ago
Steps to reproduce
1. Open Shopping Cart
2. Add Product To Cart
3. Get Cart By Id
4. Remove Product From Cart
Expected Result
Actual Result
Developer Note: I will submit a PR to fix. The issue is this line of code:
view.getProductItems().remove(existingProductItem);
Should be
view.getProductItems().remove(existingProductItem.get());
existingProductItem is of type 'Optional', need to call .get() to get ShoppingCartDetailsProductItem.
.get()
event-sourcing-esdb-aggregates.postman_collection.json
Closing as fixed in #28
Steps to reproduce
1. Open Shopping Cart
Postman request. This will store ETag and Location for future requests.2. Add Product To Cart
Postman request. This will update stored ETag for future requests.3. Get Cart By Id
Postman request. This will store productId and unitPrice for future requests.4. Remove Product From Cart
Postman request. This will update stored ETag for future requests.3. Get Cart By Id
Postman request.Expected Result
Actual Result
Developer Note: I will submit a PR to fix. The issue is this line of code:
Should be
existingProductItem is of type 'Optional', need to call
.get()
to get ShoppingCartDetailsProductItem.event-sourcing-esdb-aggregates.postman_collection.json