public void Test_GetGroup_NotFound() { PasswdClient client = new PasswdClient( new PasswdClientFactory(new PasswdWebServiceConfiguration())); Exception exception = null; try { client.GetGroup(9999999); } catch (ApplicationException application) { exception = application; } evaluate( null != exception, "Test_GetGroup_NotFound", "Test_GetGroup_NotFound", "", ""); evaluate( exception.Message.Contains("NotFound"), "Test_GetGroup_NotFound", "Test_GetGroup_NotFound", "", ""); }
public void Test_GetGroup() { PasswdClient client = new PasswdClient( new PasswdClientFactory(new PasswdWebServiceConfiguration())); Group group = client.GetGroup(_groupToSearchFor.GID); evaluate( null != group, "Test_GetGroup", "Test_GetGroup", "", ""); evaluate( _groupToSearchFor.Equals(group), "Test_GetGroup: Validate Group Data", "Test_GetGroup: Validate Group Data", group.ToString(), _groupToSearchFor.ToString()); }