private static IServiceLocator BuildLocator() { var container = new UnityContainer(); container.RegisterComponents(typeof(IFoo).Assembly); return new UnityServiceLocator(container); }