Unit Tests for Product Routes Part 1
Learn how to test the endpoints for querying existing and non-existing products.
We'll cover the following...
We'll cover the following...
Querying a non-existing product
Above, you can see the test for querying a non-existing product. This must return an empty response using a 404 Not Found status code (Line 2).
First, we try to create a valid URI from our generated ProductId. If that is successful, we create a small service wrapper for our ...