Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 643 Bytes

exercise4.md

File metadata and controls

9 lines (6 loc) · 643 Bytes

4.0 - Exercise 4 - bonus ⭐

⭐ We want to test that an alarm is raised, and also implement different alarm notification methods (For example: automatically call fire department, call owner's phone, and trigger control unit alarm siren). Plan and implement how you can extract the announcement logic and:

  1. Trigger many different announcement strategies
  2. Test that the different strategies was triggered

Hint: Dependency Inversion Principle and the Strategy Design Pattern

Take a look at the Strategy design pattern. This is a intermediate topic so ask if you're stuck.