public void container_can_resolve_personlistviewmodel() { var ass = Assembly.GetAssembly(typeof(PersonListViewModel)); var container = new Container(); container.Register(typeof (IRepository<Person>), typeof (TestPersonRepository)); container = container.RegisterViewModels(ass); var personListVm = container.Resolve<IListViewModel<Person>>(); Assert.IsNotNull(personListVm, "PersonListViewModel could not be resolved"); }