Exemple #1
0
        public static void ClassInit(TestContext context)
        {
            PasswdClient client = new PasswdClient(
                new PasswdClientFactory(new PasswdWebServiceConfiguration()));

            List <User> users = client.GetAllUsers();

            _userToSearchFor = users[new Random().Next(users.Count - 1)];

            List <Group> groups = client.GetAllGroups();

            _groupToSearchFor = groups[new Random().Next(groups.Count - 1)];
        }
Exemple #2
0
        public void Test_GetAllGroups()
        {
            PasswdClient client = new PasswdClient(
                new PasswdClientFactory(new PasswdWebServiceConfiguration()));

            List <Group> groups = client.GetAllGroups();

            evaluate(
                groups.Count > 0,
                "Test_GetAllGroups",
                "Test_GetAllGroups",
                groups.Count.ToString(),
                " groups.Count > 0");
        }