예제 #1
0
        public void MapDatabaseValueToObjectGivenPatientInfoObjectMapsValueCorrectly()
        {
            PatientBO    resultData = new PatientBO();
            Patient_Info actualData = GetTestPatient();

            resultData.MapDatabaseValueToObject(actualData);
            Assert.AreEqual(actualData.Gu_No, resultData.GUNo);
            Assert.AreEqual(actualData.Gu_Year, resultData.GUYear);
            Assert.AreEqual(actualData.Salutation, resultData.Salutation);
            Assert.AreEqual(actualData.Patient_Name, resultData.PatientName);
            Assert.AreEqual(actualData.At_Post, resultData.AtPost);
            Assert.AreEqual(actualData.Town, resultData.Town);
            Assert.AreEqual(actualData.District, resultData.District);
            Assert.AreEqual(actualData.State, resultData.State);
            Assert.AreEqual(actualData.Phone, resultData.PhoneNumber);
            Assert.AreEqual(actualData.Mobile, resultData.Mobile);
            Assert.AreEqual(actualData.Age_Yr, resultData.AgeYear);
            Assert.AreEqual(actualData.Age_Mnth, resultData.AgeMonths);
            Assert.AreEqual((SexEnum)actualData.Sex, resultData.Sex);
            Assert.AreEqual(actualData.Occupation, resultData.Occupation);
        }
예제 #2
0
        public void MapDatabaseValueToObjectGivenPatientInfoObjectMapsValueCorrectly()
        {
            PatientBO resultData = new PatientBO();
            Patient_Info actualData = GetTestPatient();
            resultData.MapDatabaseValueToObject(actualData);
            Assert.AreEqual(actualData.Gu_No, resultData.GUNo);
            Assert.AreEqual(actualData.Gu_Year, resultData.GUYear);
            Assert.AreEqual(actualData.Salutation, resultData.Salutation);
            Assert.AreEqual(actualData.Patient_Name, resultData.PatientName);
            Assert.AreEqual(actualData.At_Post, resultData.AtPost);
            Assert.AreEqual(actualData.Town, resultData.Town);
            Assert.AreEqual(actualData.District, resultData.District);
            Assert.AreEqual(actualData.State, resultData.State);
            Assert.AreEqual(actualData.Phone, resultData.PhoneNumber);
            Assert.AreEqual(actualData.Mobile, resultData.Mobile);
            Assert.AreEqual(actualData.Age_Yr, resultData.AgeYear);
            Assert.AreEqual(actualData.Age_Mnth, resultData.AgeMonths);
            Assert.AreEqual((SexEnum)actualData.Sex, resultData.Sex);
            Assert.AreEqual(actualData.Occupation, resultData.Occupation);


        }