Replies: 1 comment 1 reply
-
var mock = new Mock<IMainInterface>
{
DefaultValue = DefaultValue.Mock
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kzu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I have an interface with many properties that itself also return interfaces
How can I setup a mock that returns a default
Mock.Of<IInterfaceX>()
foreach property without having to setup each property individually?If such setup does not exist, is there a way to write such a generic extension method myself?
Beta Was this translation helpful? Give feedback.
All reactions