Nuacht

Usage of the IHttpActionResult interface (introduced in Web API 2) simplifies unit testing your Web API controllers and also wraps the creation of an HttpResponseMessage object.
Create a minimal Web API test project in ASP.NET Core 6 Create a Xunit test project named MinimalAPIDemo.Tests and rename the default unit test file to MinimalAPITests.cs.