public void GetFilteredInterventions_MyClosedList_Success() { var mockPatientInterventionDataList = new List <PatientInterventionData>(); for (int i = 1; i <= 10; i++) { mockPatientInterventionDataList.Add(new PatientInterventionData() { CreatedById = "1", AssignedToId = "1", StatusId = 2 }); } mockPatientInterventionDataList[0].AssignedToId = "2"; mockPatientInterventionDataList[1].AssignedToId = "2"; GetInterventionsRequest request = new GetInterventionsRequest() { UserId = "1", InterventionFilterType = InterventionFilterType.MyClosedList }; Assert.IsTrue(GoalsEndpointUtil.GetFilteredInterventions(mockPatientInterventionDataList, request) .Count == 8); }
public void GetFilteredInterventions_Null_Request_Should_Throw() { GoalsEndpointUtil.GetFilteredInterventions(new List <PatientInterventionData>(), null); }
public void GetFilteredInterventions_Null_InterventionsData_Should_Throw() { GoalsEndpointUtil.GetFilteredInterventions(null, new GetInterventionsRequest()); }