public void Get_All_Ids() { int contentId = CreateTestData("en-AU", out ContentType ct); IScopeProvider provider = ScopeProvider; using (IScope scope = provider.CreateScope()) { DomainRepository repo = CreateRepository(provider); ILanguage lang = LanguageRepository.GetByIsoCode("en-AU"); IContent content = DocumentRepository.Get(contentId); var ids = new List <int>(); for (int i = 0; i < 10; i++) { var domain = (IDomain) new UmbracoDomain("test " + i + ".com") { RootContentId = content.Id, LanguageId = lang.Id }; repo.Save(domain); ids.Add(domain.Id); } IEnumerable <IDomain> all = repo.GetMany(ids.Take(8).ToArray()); Assert.AreEqual(8, all.Count()); } }