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
Copy file name to clipboardExpand all lines: 04-e_shop/Documentation.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## A. Number of invocation
4
4
5
5
- 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.
7
7
- In order to mock the ``EventListener listeners`` a constructor is added to the class where this dependency will get injected.
8
8
-
9
9
- T1: test to verify that ``listener.onOrderPlaced(order)`` gets called the right number of times
0 commit comments