© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
118 replies
Byte

❔ Tests best practice

Hello I'm interested in learning more about testing in general like unit tests and other kind of tests

I try looking at guides online, but they all show really bad examples that are not just not real.

I would like to unit test my ASPNet Api's database logic that seems to need mocks, but should controller be tested? Like if we have
ProductController
ProductController
with method
CreateProduct(Request)
CreateProduct(Request)
do we test this or just logic inside it? Like services/Repos

Does the testing of API fall under different kind of tests like E2E testing for frontend
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Best practice for class constructors?
C#CC# / help
2y ago
✅ REST Create-endpoint best practice.
C#CC# / help
3y ago
❔ best design practice for this?
C#CC# / help
4y ago
Best practice reading from `Socket` / `NetworkStream`?
C#CC# / help
2y ago