From f60b059b13b98281abb5bef435ffb0632ee1be65 Mon Sep 17 00:00:00 2001 From: ansta1994 Date: Wed, 14 Aug 2024 09:44:35 +0200 Subject: [PATCH] Added the domain-model.md file for the Exercise 1 --- src/main/java/com/booleanuk/core/domain-model.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/main/java/com/booleanuk/core/domain-model.md diff --git a/src/main/java/com/booleanuk/core/domain-model.md b/src/main/java/com/booleanuk/core/domain-model.md new file mode 100644 index 0000000..87e22a5 --- /dev/null +++ b/src/main/java/com/booleanuk/core/domain-model.md @@ -0,0 +1,6 @@ +| Classes | Variables | Methods | Scenario | Outcome | +|----------|--------------------------|----------------------------|--------------------|-----------------| +| `Basket` | `List products` | `pay(account, sumPrice())` | Pay for products | Money deducted | +| | | | Insufficient funds | Warning given | +| | | `receipt()` | Items in basket | Receipt printed | +| | | | No items in basket | Warning given |