Currently I have an entity called Product with the respective ProductRepository and ProductService.
For ProductService, I have tests for:
- Read (Covering Create too)
- Update
- Delete
Besides achieving higher test coverage, is there any particular reason to also test ProductRepository?
What I think:
It could be possible that, one day, ProductService gets added complexity that needs to be tested within the previous mentioned tests, giving the ProductRepository a perspective of 'testing the most primitive part of the layer' (The CRUD against the database), therefore justifying its testing.