How do you prohibit calling the base class constructor using Moq?
I cannot Mock an object with Moq because the base class constructor is called, and it requires real objects, so I want to stop calling the base class constructor.
var parametersMoq = new Mock<MyDerivedClass>(null, "Params", null){ CallBase = false, };
_storedProcedureAccessor._parameters = parametersMoq.Object;
The base class constructor MyDerivedClass is causing me problems.
source
share