In this section, we will create an ASP.NET Core API and then unit test it.
Complete the following steps to create your application:
- Open Visual Studio.
- Go to File | New | Project or press Ctrl + Shift + F5:
- Select ASP.NET Core Web Application.
- From the template window, select ASP.NET Core API—make sure you select .NET Core 2.0.
- Name the project, choose the path for the solution, and click OK.
- Add the Core folder—in Solution Explore, right-click and select Add New Folder, and name it Model.
- Add the Interfaces and Model folders under the Core folder.
- Add a new class under the Model folder—right-click on the Model ...