public void GetAllInstances_CuriouslyRecurringTemplatePattern_Succeeds() { var container = new Container(); container.RegisterAllOpenGeneric(typeof(IRepo <>), typeof(RepoA <>), typeof(RepoB <>)); var repo = container.GetAllInstances <IRepo <Entity> >(); AssertThat.Equals(repo.Count(), 2); }