Use FluentValidation to validate data and data builder to generate randomly datas for tests.
- Using FluentValidation to validate the customer request.
- FirstName and LastName Should not be null or empty.
- Discount should not equal to 0 if assigned
- Address should not be null or empty and between 20, 250 caracters
- Response standarization
- Actions should return ProblemValidationDetails for BadRequestException and ProblemDetails for InternalServerError.
- Using data builder and Diverse library to generate randomly datas for customer tests cases.