private void ValidateNoResults(PersonServiceResponse response) { Assert.IsNotNull(response); Assert.Equals(response.PageCount, 0); Assert.Equals(response.PageResultCount, 0); Assert.Equals(response.TotalSize, 0); Assert.IsNotNull(response.Results); }
private void ValidateSingleResult(PersonServiceResponse response) { Assert.IsNotNull(response); Assert.Equals(response.PageCount, 1); Assert.Equals(response.PageResultCount, 1); Assert.Equals(response.TotalSize, 1); Assert.AreEqual(response.Results[0].PersonId, TEST_PERSON_ID); Assert.AreEqual(response.Results[0].SortName, TEST_SORT_NAME); Assert.Equals(response.Results[0].restricted, TEST_RESTRICTED); }
// Checks the response to see if it contains the test person private void ValidateManyResults(PersonServiceResponse response) { Assert.IsNotNull(response); Assert.IsTrue(response.PageCount >= 1); Assert.IsTrue(response.TotalSize >= 1); Assert.IsTrue(response.PageResultCount >= 1); }