コード例 #1
0
ファイル: CancelCaseTest.cs プロジェクト: nbIxMaN/EMKT
        public void CancelFullAmbCase()
        {
            using (TestPixServiceClient PixClient = new TestPixServiceClient())
            {
                PatientDto patient = (new SetData()).PatientSet();
                PixClient.AddPatient(Global.GUID, Data.idlpu, patient);
            }
            using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
            {
                CaseAmb caseAmb = (new SetData()).FullCaseAmbSetForCreate();
                SetData set     = new SetData();
                caseAmb.MedRecords = new List <MedRecord>
                {
                    set.MinService(),
                        set.MinTfomsInfo(),
                        set.MinDiagnosis(),
                        MedRecordData.clinicMainDiagnosis,
                        MedRecordData.referral,
                        MedRecordData.sickList,
                        set.MinLaboratoryReport(),
                };
                StepAmb stepAmb = (new SetData()).MinStepAmbSet();
                stepAmb.MedRecords = new List <MedRecord>
                {
                    set.MinService(),
                        set.MinAppointedMedication(),
                        set.MinDiagnosis(),
                        MedRecordData.clinicMainDiagnosis,
                        MedRecordData.referral,
                        set.MinLaboratoryReport(),
                };
                caseAmb.Steps = new List <StepAmb>
                {
                    stepAmb
                };
                EmkClient.CreateCase(Global.GUID, caseAmb);
                EmkClient.CancelCase(Global.GUID, Data.idlpu, caseAmb.IdPatientMis, caseAmb.IdCaseMis);
            }

            if (Global.errors == "")
            {
                Assert.Pass();
            }
            else
            {
                Assert.Fail(Global.errors);
            }
        }
コード例 #2
0
ファイル: CancelCaseTest.cs プロジェクト: nbIxMaN/EMKT
 public void CancelMinStatCase()
 {
     using (TestPixServiceClient PixClient = new TestPixServiceClient())
     {
         PatientDto patient = (new SetData()).PatientSet();
         PixClient.AddPatient(Global.GUID, Data.idlpu, patient);
     }
     using (TestEmkServiceClient EmkClient = new TestEmkServiceClient())
     {
         CaseStat caseStat = (new SetData()).MinCaseStatSetForCreate();
         EmkClient.CreateCase(Global.GUID, caseStat);
         EmkClient.CancelCase(Global.GUID, Data.idlpu, caseStat.IdPatientMis, caseStat.IdCaseMis);
     }
     if (Global.errors == "")
     {
         Assert.Pass();
     }
     else
     {
         Assert.Fail(Global.errors);
     }
 }