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?
33 replies