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)]; }
public void Test_GetAllUsers() { PasswdClient client = new PasswdClient( new PasswdClientFactory(new PasswdWebServiceConfiguration())); List <User> users = client.GetAllUsers(); evaluate( users.Count > 0, "Test_GetAllUsers", "Test_GetAllUsers", users.Count.ToString(), " users.Count > 0"); }