public void Test_GetUser_NotFound() { PasswdClient client = new PasswdClient( new PasswdClientFactory(new PasswdWebServiceConfiguration())); Exception exception = null; try { client.GetUser(9999999); } catch (ApplicationException application) { exception = application; } evaluate( null != exception, "Test_GetUser_NotFound", "Test_GetUser_NotFound", "", ""); evaluate( exception.Message.Contains("NotFound"), "Test_GetUser_NotFound", "Test_GetUser_NotFound", "", ""); }
public void Test_GetUser() { PasswdClient client = new PasswdClient( new PasswdClientFactory(new PasswdWebServiceConfiguration())); User user = client.GetUser(_userToSearchFor.UID); evaluate( null != user, "Test_GetUser", "Test_GetUser", "", ""); evaluate( _userToSearchFor.Equals(user), "Test_GetUser: Validate User Data", "Test_GetUser: Validate User Data", user.ToString(), _userToSearchFor.ToString()); }