Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Auto-Mock #9

Open
michal-ciechan opened this issue Jun 9, 2016 · 1 comment
Open

Generic Auto-Mock #9

michal-ciechan opened this issue Jun 9, 2016 · 1 comment

Comments

@michal-ciechan
Copy link
Owner

Find out if there is any hooks in Moq to have a method called when a generic mockable method is called to get rid of calls such as the following:

_moq.Of<IGeneric>().Setup(x => x.Get<ISomeType>())
    .Returns(_moq.Of<ISomeType>().Object);
@michal-ciechan
Copy link
Owner Author

michal-ciechan commented May 25, 2017

Submitted Pull Request to Moq repo

devlooped/moq#346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant