Skip to Content
Building RESTful Web Services with .NET Core
book

Building RESTful Web Services with .NET Core

by Gaurav Aroraa, Tadit Dash
May 2018
Intermediate to advanced
334 pages
7h 25m
English
Packt Publishing
Content preview from Building RESTful Web Services with .NET Core

Run tests

To run tests, you need to make sure that your APIs are running and accessible using the URL. To do so, use the CLI to complete the following steps:

  1. Open the Visual Studio command prompt
  2. Locate the folder of your API project
  3. Fire the command dotnet run

You should now a screen similar to the one in the following screenshot:

Follow these steps to run tests using Visual Studio Test Explorer:

  1. Open the ProductTest.cs file
  2. Open Test Explorer
  3. Click Run

This will run all the tests; you should see an output similar to the following screenshot:

We can also check the exact time taken for a request to be completed by individual APIs. To ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Web Services with ASP.NET Core 3

Hands-On RESTful Web Services with ASP.NET Core 3

Samuele Resca
Microservices in .NET Core

Microservices in .NET Core

Christian Horsdal Gammelgaard

Publisher Resources

ISBN: 9781788291576Supplemental Content