© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
32 replies
Leonardo_R08

❔ Using Moq Library for test

I want to apply unit tests in .net framework using the Moq library. In this case, I have two projects, "Application.Test" and "Negocios". "Negocios" is referenced by "Application.Test" and contains the methods to be tested. However, when using Moq, I need to use an interface created in "Application". I cannot make a reference in "Negocios" because it would be cyclical. How can I solve this problem to perform unit tests of databases using a mock?
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

Similar Threads

learning moq framework
C#CC# / help
2y ago
❔ ✅ Moq problems with "MethodCall.cs"
C#CC# / help
3y ago
❔ Moq test exception thrown after adding and saved changes to the context object
C#CC# / help
3y ago