コード例 #1
0
        public void TestPatientRepositorySearch()
        {
            IRpcBroker broker = MockRpcBrokerFactory.GetDsioFemalePatientSearchBroker();

            PatientRepository repository = new PatientRepository(broker);

            PatientSearchResult result = repository.Search("C", 1, 10);

            Assert.IsTrue(result.Success);
        }
コード例 #2
0
        public void TestPatientRepositorySearch()
        {
            IRpcBroker broker = MockRpcBrokerFactory.GetDsioFemalePatientSearchBroker();

            PatientRepository repository = new PatientRepository(broker);

            PatientSearchResult result = repository.Search("C", 1, 10);

            //List<SearchPatient> patients = repository.Search("CPR");

            Assert.IsTrue(result.Success);
            //Assert.IsNotNull(result.Patients);
            //Assert.IsTrue(patients.Count > 0);
        }
コード例 #3
0
        private List <DsioSearchPatient> TestMockPatientSearch(string searchParam)
        {
            IRpcBroker broker = MockRpcBrokerFactory.GetDsioFemalePatientSearchBroker();

            //DsioPatientSearchCommand patSearchCommand = new DsioPatientSearchCommand(broker);
            //DsioFemalePatientSearchCommand patSearchCommand = new DsioFemalePatientSearchCommand(broker);
            DsioPatientListCommand patSearchCommand = new DsioPatientListCommand(broker);

            RpcResponse response = patSearchCommand.Execute();

            Assert.AreEqual(RpcResponseStatus.Success, response.Status);

            return(patSearchCommand.MatchingPatients);
        }