RestSharp is very powerful but very easy to use open source HTTP client library. With RestSharp, QA team can save a lot of time to create Restful API Test Automation In this demo, I will use RestSharp to consume Students Web API" demo. For the database access, I used Entity Framework Database First approach.
- Download Students api, update your server name in StartUp.cs file.
- Run the application. (This will create Students db)
- Download API_Testing_Using_RestSharp.
- Change Connction Strings in App.config files.
- Run the tests in API_Testing_Using_RestSharp.
- Can_Retrieve_All_Students
- Can_Retrieve_Specific_Student
- Can_Update_Existing_Student_Info
- Can_Create_A_New_Student
- Can_Delete_A_Student