How to unit test in web api
Loading
How to unit test in web api
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajesh GamiPosted Nov 15, 2022, 1:15 PM
https://www.c-sharpcorner.com/article/unit-testing-controllers-in-web-api/
https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/testing?view=aspnetcore-7.0
https://learn.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/unit-testing-controllers-in-web-api
https://stackoverflow.com/questions/41722191/unit-testing-a-web-api-controller
https://www.youtube.com/watch?v=RgoytbbYbr8
Jignesh KumarPosted Nov 14, 2022, 12:01 PM
https://www.c-sharpcorner.com/article/unit-testing-controllers-in-web-api/
Brahma Prakash ShuklaPosted Nov 14, 2022, 9:44 AM
https://learn.microsoft.com/en-us/aspnet/web-api/overview/testing-and-debugging/unit-testing-controllers-in-web-api
Rajanikant HawaldarPosted Nov 14, 2022, 9:38 AM
https://www.c-sharpcorner.com/UploadFile/pandeypradip/unit-testing-of-web-api/
Sachin SinghPosted Nov 14, 2022, 9:32 AM
Unit test means testing the last unit of code, So, first test the Business Logic then Moq the Business Logic in Web API and use Assert.Throw to throw exceptions if necessary to validate the exceptions.