public void TestFindAll() { var contactObjects = ContactObject.FindAll(this.ADOperator); Assert.Greater(contactObjects.Count, 0); foreach (var contactObject in contactObjects) { using (contactObject) { Assert.AreEqual(ADObjectType.Contact, contactObject.Type); } } }
public void TestFindAllWithFilter() { var contactObjects = ContactObject.FindAll(this.ADOperator, new Is(AttributeNames.CN, this.ContactCN)); Assert.AreEqual(1, contactObjects.Count); }