Microsoft.Azure.Commands.Resources.Test.ScenarioTests.ActiveDirectoryTests.TestGetAllADGroups C# (CSharp) Method

TestGetAllADGroups() private method

private TestGetAllADGroups ( ) : void
return void
        public void TestGetAllADGroups()
        {
            const string scriptMethod = "Test-GetAllADGroups";
            ADGroup newGroup = null;
            var controllerAdmin = ResourcesController.NewInstance;

            controllerAdmin.RunPsTestWorkflow(
                // scriptBuilder
                () =>
                {
                    newGroup = CreateNewAdGroup(controllerAdmin);
                    return new[] { scriptMethod };
                },
                // initialize
                null,
                // cleanup
                () =>
                {
                    DeleteAdGroup(controllerAdmin, newGroup);
                },
                TestUtilities.GetCallingClass(),
                TestUtilities.GetCurrentMethodName());
        }