Module Main: Check the bidirectional association between Project-user
📢 Problem description
Chicking the correct oprtation of the bidirectional association between Project-user (A project can have several participants and a user can participate in several project).
👮 Tests
-
Check adding a participant to a project. -
Check adding a user to a project. -
Check the handshaking between the classes. -
Check removing a participant from a project.
✔ Solutions
- Write the unit tests.
- Add the needed methods to the class Project (addParticipant, removeParticipant, basicAddParticipant, basicRemoveParticipant)
- Add the needed methods to the class User (addProject, removeProject, basicAddProject, basicRemoveProject)
- Implement the methods while insuring the handshake between the classes.