Skip to content

Instantly share code, notes, and snippets.

@SlyNet
Created February 28, 2012 12:48
Show Gist options
  • Save SlyNet/1932328 to your computer and use it in GitHub Desktop.
Save SlyNet/1932328 to your computer and use it in GitHub Desktop.
IDependencyResolver resolver = Mock.Of<IDependencyResolver>(x => x.GetService(typeof(IDictionaryService)) == dictionaryService&&
x.GetService(typeof(IDictionaryRepository)) == dictionaryRepository &&
x.GetService(typeof(IMappingEngine)) == mappingEngine);
DependencyResolver.SetResolver(dependencyResolver);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment