CQRS.Tests.KeyValueStorage.DocumentDbTests.GetAllWithIdsThrowsNoSuchDocumentExceptionExceptionIfAnyIdIsMissing C# (CSharp) Method

GetAllWithIdsThrowsNoSuchDocumentExceptionExceptionIfAnyIdIsMissing() private method

        public void GetAllWithIdsThrowsNoSuchDocumentExceptionExceptionIfAnyIdIsMissing()
        {
            var store = CreateStore();

            var ids = 1.Through(9).Select(index => Guid.Parse("00000000-0000-0000-0000-00000000000{0}".FormatWith(index))).ToArray();

            var users = ids.Select(id => new User() { Id = id }).ToArray();

            using (var session = OpenSession(store))
            {
                users.ForEach(user => session.Save(user));
                session.SaveChanges();
            }

            using (var session = OpenSession(store))
            {
                Assert.Throws<NoSuchDocumentException>(() => session.Get<User>(ids.Take(5).Append(Guid.Parse("00000000-0000-0000-0000-000000000099")).ToArray()).ToArray());
            }
        }
DocumentDbTests