When creating questions, it checks whether the template exists first. This check is done on the controller which returns a NotFound but there is another check on the service. This will never go in here so why have it? Because it can be tested.
Is there any other pattern that can be tested and also return a NotFound if template didn't exist?
When creating questions, it checks whether the template exists first. This check is done on the controller which returns a NotFound but there is another check on the service. This will never go in here so why have it? Because it can be tested.
Is there any other pattern that can be tested and also return a NotFound if template didn't exist?