C#C
C#โ€ข3y ago
oe

โ” What unit tests should I create for my ASP.NET API Controller / project?

I am new to Unit Testing. I have watched a video on XUnit and FluidAssertions, but I am unsure as to what the "industry standards" of creating unit tests is like. Should you create one unit test per controller method? In my case, what unit tests would you create?

API Project: https://github.com/OEvans117/RequestConverter/tree/master/RequestConverterAP
API Controller: https://github.com/OEvans117/RequestConverter/blob/master/RequestConverterAPI/Controllers/RequestController.cs
XUnit Project: https://github.com/OEvans117/RequestConverter/tree/master/RequestConverterAPI.Tests

Thank you! ๐Ÿ™‚
GitHub
Convert HTTP Requests & Websockets from Fiddler, Chrome into code from multiple programming languages. Ability to modify global/language related settings which will impact the output. - Req...
GitHub
Convert HTTP Requests & Websockets from Fiddler, Chrome into code from multiple programming languages. Ability to modify global/language related settings which will impact the output. - Req...
Was this page helpful?