Answers
- No. REPR does not dictate how to implement it. You can create your own stack or go with a barebones ASP.NET Core Minimal API, implementing everything by hand in the project.
- REPR consists of a request, an endpoint, and a response.
- No. REPR does not prescribe any implementation details.
- Gray-box integration tests provide a lot of confidence in their outcome because they test the feature almost end to end, ensuring that all the pieces are there, from the services in the IoC container to the database.
- Handling exceptions using middleware allows for centralizing the management of exceptions, encapsulating that responsibility in a single place. It also uniformizes the output, sending the clients a response in the same format for all errors. It removes the burden of handling each exception individually, eliminating
try
-catch
boilerplate code.
Learn more on Discord
To join the Discord community for this book – where you can share...