I'm not clear how I should return a BAD_REQUEST response using state. Do you have example to share?
s
Stefano Lucka
04/21/2022, 7:53 PM
I think you should put the provider application in such a state so that your productive code is reacting with 400
b
Boris
04/22/2022, 2:22 AM
Pretty much yeah. A useful example would depend on where you cut your provider for verification.
Boris
04/22/2022, 2:23 AM
At a high level, your state handler is meant to affect what the provider responds with.
Boris
04/22/2022, 2:24 AM
In my architectures, I usually let the presentation & use case layers run normally (to exercise just enough of the application code), and the state handler stubs the input for use cases.