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

            DescendantInfo descendant = null;

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