public void _TestSetup() { ContextRegistry.Clear(); _context = new MvcApplicationContext("file://objectsMvc.xml"); _mvcNamedContext = new MvcApplicationContext("named", false, "file://namedContextObjectsMvc.xml"); ContextRegistry.RegisterContext(_context); ContextRegistry.RegisterContext(_mvcNamedContext); _resolver = new SpringMvcDependencyResolver(_context); _resolver.ApplicationContextName = string.Empty; }