-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
The OutputBoundaries depend on their respective ViewModels.
As a result the UseCase component will also depend on the ViewModel, though it doesn't really need to.
What are some acceptable remedies here?
So far I see:
- Change the return type of
OutputBoundary#getViewModel()
to the genericObject
, use unit tests on the Presenter to satisfy doubts. - Add an empty ViewModelInterface for each UseCase component to be depended on by the OutputBoundary, UseCaseInteractor and the Controller while the Presenter uses the implementation directly.
- Make a single empty ViewModel interface (set as immutable/sealed if possible) to be referred to in all the UseCase component. All ViewModels implement that interface and the rest is as above in # 2.
Metadata
Metadata
Assignees
Labels
No labels