Unit testing controllers seems like a complete waste of time.
No point in testing code not written by you (.NET Core Web API). Now you need to mock the validation part, because it is not running through the automatic middleware.
If you want to test your validation in the controllers, use integration testing.
No point in testing code not written by you (.NET Core Web API). Now you need to mock the validation part, because it is not running through the automatic middleware.
If you want to test your validation in the controllers, use integration testing.

