I have 2 use cases LoadA
and LoadSettings
, in LoadA
I need to access the Settings
returned from LoadSettings
. The business is designed so that if Settings
is not yet exist then a default Setting
would be returned.
The default initialization logic is put inside LoadSettings
, but now the LoadA
must depend on the LoadSettings
instead of calling the SettingsRepository
, thus creating a peer-dependency.
Is this anti-pattern in term of strictly following Clean Architecture?