© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Next page
Similar Threads
Best practice for class constructors?
C
C# / help
2y ago
✅ REST Create-endpoint best practice.
C
C# / help
3y ago
❔ best design practice for this?
C
C# / help
4y ago
Best practice reading from `Socket` / `NetworkStream`?
C
C# / help
2y ago