-
Notifications
You must be signed in to change notification settings - Fork 40
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
Remove DependencyResolver #21
Comments
It's a MvcContrib project ;) |
Good point. Well maybe the error message could be changed, because it's the dependency resolver that should be set. But my main issue is I wasn't able to get this to work in my unit tests. I kept getting this error even when I set my dependency resolver in the setup. Any ideas? |
Show me the code for the unit test. On Mon, Aug 20, 2012 at 12:48 PM, Trevor de Koekkoek <
|
I don't think you should be using DependencyResolver as that is specific to Web.Mvc. Your membership provider should be independent of Mvc. Also the error you give is misleading as it's not actually a service locator that is missing, but rather dependency resolver:
I'm having a beast of a time unit testing this as the dependencyresolover is always failing for some reason, even if I initialize it in my test setup fixture. I think if you would just assign the service locator, it would be sufficient:
The text was updated successfully, but these errors were encountered: