How to write unit tests in asp.net core5.0 web api
How to do microsoft exception logging to log in text file in web api
How to write unit tests in asp.net core5.0 web api
How to do microsoft exception logging to log in text file in web api
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Sep 16, 2022, 12:45 AM EDT
Hey, plese check the below links about unit test.
https://procodeguide.com/programming/unit-testing-in-aspnet-core/
https://www.c-sharpcorner.com/article/crud-operations-unit-testing-in-asp-net-core-web-api-with-xunit/
http://www.mukeshkumar.net/articles/testing/crud-operations-unit-testing-in-aspnet-core-web-api-with-xunit
Vishal YelveRank #178 · 13.6K reputationPosted Sep 16, 2022, 1:20 AM EDT
Hi kavya,
Please refer to the below articles
Unit Testing
https://code-maze.com/unit-testing-aspnetcore-web-api/
https://medium.com/c-sharp-progarmming/unit-testing-in-asp-net-core-web-api-b2e6f7bdb860
https://www.c-sharpcorner.com/article/crud-operations-unit-testing-in-asp-net-core-web-api-with-xunit/
http://www.mukeshkumar.net/articles/testing/crud-operations-unit-testing-in-aspnet-core-web-api-with-xunit
https://www.codingame.com/playgrounds/35462/creating-web-api-in-asp-net-core-2-0/part-2---unit-tests
Logging
https://www.c-sharpcorner.com/article/how-to-implement-nlog-in-webapi/
Naresh BeniwalRank #365 · 6.8K reputationPosted Nov 12, 2022, 2:33 PM EST
https://codingsonata.com/exception-handling-and-logging-in-asp-net-core-web-api/
Uday DodiyaRank #239 · 10.3K reputationPosted Sep 15, 2022, 11:57 PM EDT
Hi Kavya,
Please Refer Following Article And Try It,
1. How to write unit tests in asp.net core5.0 web api
Ans : https://code-maze.com/unit-testing-aspnetcore-web-api/
2. How to do microsoft exception logging to log in text file in web api
Ans : http://codingsonata.com/exception-handling-and-logging-in-asp-net-core-web-api/