Skip to content

Commit 257d2c4

Browse files
authored
Update Documentation.md
1 parent 09aa177 commit 257d2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04-e_shop/Documentation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## A. Number of invocation
44

55
- In the book it's stated that entities should not be mocked. Therefore, the ``Order`` objects are instantiated.
6-
- The implementation of the ``e-shop`` follows the Hexagonal Architecture. Therefore, the ``EventPublisher`` does not depend on low-level modules, instead it depends on an abstraction, the ``EventListener``. The ``EventListener`` is a port and both the ``InventoryManager`` and the ``ÈmailNotificationService`` are adapters.
6+
- The implementation of the ``e-shop`` follows the Hexagonal Architecture. Therefore, the ``EventPublisher`` does not depend on low-level modules, instead it depends on an abstraction, the ``EventListener``. The ``EventListener`` is a port and both the ``InventoryManager`` and the ``EmailNotificationService`` are adapters.
77
- In order to mock the ``EventListener listeners`` a constructor is added to the class where this dependency will get injected.
88
-
99
- T1: test to verify that ``listener.onOrderPlaced(order)`` gets called the right number of times

0 commit comments

Comments
 (0)