public void GetSocialRelationshipsByContact_Success() { // Act var response = controller.GetSocialRelationshipsByContact(defaultContactId); // Assert Assert.IsNotNull(response, "Response can not be null"); Assert.IsNotNull(response.DataItems, "DataItems can not be null"); Assert.IsTrue(response.DataItems.Count > 0, "Atleast one Social Relationship must exist."); }
public void GetSocialRelationshipsByContact_Success() { //Arrange Mock_SocialRelationship(); //Act var getSocialRelationshipResult = socialRelationshipController.GetSocialRelationshipsByContact(_defaultContactId); var response = getSocialRelationshipResult as HttpResult <Response <SocialRelationshipModel> >; //Assert Assert.IsNotNull(response, "Response can't be null"); Assert.IsNotNull(response.Value, "Response Value can't be null"); Assert.IsNotNull(response.Value.DataItems, "DataItems can't be null"); Assert.IsTrue(response.Value.DataItems.Count() > 0, "Atleast one Social Relationship must exist."); }