public void GetHPI_Success() { // Act var response = controller.GetHPI(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 Present Illness must exist."); }
public void GetHPI_Success() { //Arrange Mock_PresentIllness(); //Act var getPresentIllnessResult = PresentIllnessController.GetHPI(_defaultContactId); var response = getPresentIllnessResult as HttpResult <Response <PresentIllnessModel> >; //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 HPI must exist."); }