Hi Asdrubal! UserRepository has the one responsability: access to database and UserService has one responsability: keep the business logic separate from database. In that way you can make fake implementation of the Repository to test the BusinessService
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Asdrubal! UserRepository has the one responsability: access to database and UserService has one responsability: keep the business logic separate from database. In that way you can make fake implementation of the Repository to test the BusinessService