public override GetPatientAllergyRes Execute(GetPatientAllergyReq pServiceRequest)
        {
            GetPatientAllergyRes wRes = new GetPatientAllergyRes();

            wRes.BusinessData = PatientsDAC.GetPatientAllergy(pServiceRequest.BusinessData.PatientId);

            if (wRes.BusinessData == null)
            {
                wRes.BusinessData           = new PatientAllergyBE();
                wRes.BusinessData.AllergyId = -1;
            }
            return(wRes);
        }
Пример #2
0
        public void GetPatientAllergy_ReturnNull()
        {
            string strErrorResut = string.Empty;

            try
            {
                var patien = PatientsDAC.GetPatientAllergy(12312);
                Assert.AreEqual(patien, null, "no retorna nulo");
            }
            catch (Exception e)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);
            }
            Assert.AreEqual <String>(strErrorResut, String.Empty, strErrorResut);
        }