Getting ready for the tests

In this section, we will create an ASP.NET Core API and then unit test it.

Complete the following steps to create your application:

  1. Open Visual Studio.
  2. Go to File | New | Project or press Ctrl + Shift + F5:
  1. Select ASP.NET Core Web Application.
  2. From the template window, select ASP.NET Core API—make sure you select .NET Core 2.0.
  3. Name the project, choose the path for the solution, and click OK.
  4. Add the Core folder—in Solution Explore, right-click and select Add New Folder, and name it Model.
  5. Add the Interfaces and Model folders under the Core folder.
  6. Add a new class under the Model folder—right-click on the Model ...

Get Building RESTful Web Services with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.