What I thought was a simple Internet search turned out to be more than that.
Closest to the solution was that at first it allowed the use of attributes for routing: AttributeRouting does not work with the HttpConfiguration object for writing integration tests
But what about ASP.NET Web Api 2?
My unit test
HttpConfiguration config = new HttpConfiguration();
How can I enter my controller so that it reads the attributes on the controller and sets the routes so that I can really do some testing?
c # unit-testing asp.net-mvc-routing asp.net-web-api2
Syska
source share