コード例 #1
0
        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);
        }
コード例 #2
0
 public void GetFilteredInterventions_Null_Request_Should_Throw()
 {
     GoalsEndpointUtil.GetFilteredInterventions(new List <PatientInterventionData>(), null);
 }
コード例 #3
0
 public void GetFilteredInterventions_Null_InterventionsData_Should_Throw()
 {
     GoalsEndpointUtil.GetFilteredInterventions(null, new GetInterventionsRequest());
 }