public void GetAppointmentByResource_Success() { // Act var result = controller.GetAppointmentByResource(resourceID, resourceTypeID); var response = result as Response <AppointmentViewModel>; // Assert Assert.IsTrue(response != null, "Response can't be null"); Assert.IsTrue(response.DataItems != null, "Data items can't be null"); Assert.IsTrue(response.DataItems.Count > 0, "Atleast one appointment must exists."); }