Beispiel #1
0
        public async Task GetDescendants()
        {
            ManagementGroup mgmtGroup = await Client.GetManagementGroup(_mgmtGroup.Id).GetAsync();

            DescendantInfo descendant = null;

            await foreach (var desc in mgmtGroup.GetDescendantsAsync())
            {
                descendant = desc;
                break;
            }
            Assert.IsNull(descendant); //should have no descendants
        }