Sample source code for getting started with xUnit in ASP.NET Core 5
This article will get you started with unit testing in the ASP.NET core application. We will start with creating an ASP.NET Core based application with math operation service and implement xUnit.net to automate testing of the operations available in this service.
The complete article is available at https://procodeguide.com/programming/unit-testing-in-aspnet-core/