Due to the fact that this API was developed using .NET Core 3.1 you will need to use Visual Studio 2019 to run it, as older versions of the IDE do no support this SDK.
The easiest way to run this API is to:
- Press the green "Code" button in the top right corner and select "Download ZIP".
- Unzip the downloaded folder.
- In Visual Studio 2019, under the "File" menu, select "Open" and then "Project/Solution...".
- In the window that opens, you need to navigate to the unzipped file location and select "CustomerAPI.sln". This will load the full project.
- Once the project is loaded in Visual Studio you simply need to press F5 and then the page that will open will give you further instructions.
On top of the system testing that you can perform by running the project, I also wrote unit tests to check that the API endpoints behave in the desired manner. In order to run those you need to:
- Identify "Solution Explorer" in Visual Studio 2019.
- Find the project named "CustomerAPI_Tests".
- Right click on the project and select the option "Run tests".
- This will open the "Test Explorer" window and it will start running the tests.