Beispiel #1
0
        public void GetPatientAllergyRes_SetXml()
        {
            string strErrorResut = string.Empty;
            string xml = Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"D:\Projects\pelsofthealth\trunk\src\Health.Test\GetPatientAllergyRes.txt");

            GetPatientAllergyRes res = new GetPatientAllergyRes();
            PatientAllergyBE wPatientAllergyBE = new PatientAllergyBE();

            //res.BusinessData = new Back.BE.PatientAllergyBE();
            res.BusinessData = null;
            string x = res.GetXml(); 
            try
            {
                res = (GetPatientAllergyRes)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(GetPatientAllergyRes),xml);
                res.SetXml(x);
                res.SetXml(xml);
            }
            catch (Exception e)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);
            }
            Assert.AreEqual<String>(strErrorResut, String.Empty, strErrorResut);
        }
Beispiel #2
0
        public void GetPatientAllergyRes_SetXml()
        {
            string strErrorResut = string.Empty;
            string xml           = Fwk.HelperFunctions.FileFunctions.OpenTextFile(@"D:\Projects\pelsofthealth\trunk\src\Health.Test\GetPatientAllergyRes.txt");

            GetPatientAllergyRes res = new GetPatientAllergyRes();
            PatientAllergyBE     wPatientAllergyBE = new PatientAllergyBE();

            //res.BusinessData = new Back.BE.PatientAllergyBE();
            res.BusinessData = null;
            string x = res.GetXml();

            try
            {
                res = (GetPatientAllergyRes)Fwk.HelperFunctions.SerializationFunctions.DeserializeFromXml(typeof(GetPatientAllergyRes), xml);
                res.SetXml(x);
                res.SetXml(xml);
            }
            catch (Exception e)
            {
                strErrorResut = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);
            }
            Assert.AreEqual <String>(strErrorResut, String.Empty, strErrorResut);
        }