public void TestFindAll() { var containerObjects = ContainerObject.FindAll(this.ADOperator); Assert.Greater(containerObjects.Count, 0); foreach (var containerObject in containerObjects) { using (containerObject) { Assert.AreEqual(ADObjectType.Container, containerObject.Type); } } }
public void TestFindAllWithFilter() { var containerObjects = ContainerObject.FindAll(this.ADOperator, new Is(AttributeNames.CN, this.ContainerCN)); Assert.AreEqual(1, containerObjects.Count); }