Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 692 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 692 Bytes

API Testing with HttpClient + Dapper

Description:

HttpClient in C# built-in. It is another great way for API Testing. It is fater than ResteSharp, but has little bit higher learning curve.

How to run it

  1. Download Students api, update your server name in StartUp.cs file.
  2. Run the application. (This will create Students db)
  3. Download PI_Testing_Using_HttpClient.
  4. Change Connction String in App.config file.
  5. Run the tests in API_Testing_Using_HttpClient.

Test Cases Covered:

GET

  • Can_Retrieve_All_Students
  • Can_Retrieve_Specific_Student

PUT

  • Can_Update_Existing_Student_Info

POST

  • Can_Create_A_New_Student

DELETE

  • Can_Delete_A_Student