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

Unable to mock protected generic method #249

Closed
mattzink opened this issue Feb 16, 2016 · 1 comment
Closed

Unable to mock protected generic method #249

mattzink opened this issue Feb 16, 2016 · 1 comment
Assignees
Milestone

Comments

@mattzink
Copy link

It is not possible to currently mock a protected method that has generic type parameters.

protected virtual TEntity GetEntityByName<TEntity>(string name)

Related question on StackOverflow

@Prashantpola
Copy link

Is there any way to mock protected generic method of base class from which is calling from child.
I am calling base method from child class as below
this.ExecuteHttpPutCall<ClassT, ServiceResult<IEnumerable>>(url, request,handler)

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

3 participants