As far as i understand,
use cases
or interactors
use entities
to perform some action, whereas, entities
holds our business rules
.
According to this definition:
The use cases interact with and depend on the entities
In what way use cases depend on entities, what is the relationship ?
For example let's say we have a banking app with three functionalities: login
, view balance
and transfer funds
.
So, to be able to transfer funds the user must be logged in and should have sufficient balance.
I guess our uses case here is transfer funds
and the statement above is business rule
, and if that's the case, how to implement it?
There are so many analogies but very few proper implementations.