public void BLL_GetPatient_ID()
        {
            // should be null because not active.
            var pat   = ClinicalBLL.GetPatient_ID(2);
            var uac_l = ClinicalBLL.GetAllUserActions();

            Assert.IsNotNull(pat);
            Assert.AreEqual(ClinicalBLL.UserActionCode.Patient_Viewed.ToString(), uac_l.Last().Action_id);
            Assert.AreEqual(ClinicalBLL.UserActionDesc[ClinicalBLL.UserActionCode.Patient_Viewed], uac_l.Last().Action_desc);
        }
        public void BLL_DeletePatient()
        {
            var p1 = ClinicalBLL.GetPatient_ID(2);

            ClinicalBLL.DeletePatient(2);
            var uac_l = ClinicalBLL.GetAllUserActions();

            Assert.AreEqual(p1.id, uac_l.Last().Patient_id);
            Assert.AreEqual(ClinicalBLL.UserActionCode.Patient_Deleted.ToString(), uac_l.Last().Action_id);
            Assert.AreEqual(ClinicalBLL.UserActionDesc[ClinicalBLL.UserActionCode.Patient_Deleted], uac_l.Last().Action_desc);

            var p2 = ClinicalBLL.GetPatient_ID(2);

            Assert.IsNull(p2);
        }
        public void BLL_UpdatePatient()
        {
            var p1 = ClinicalBLL.GetPatient_ID(2);

            p1.MiddleName = "Francis";
            p1.City       = "Boston";
            p1.State      = "NC";

            ClinicalBLL.UpdatePatient(p1);
            var uac_l = ClinicalBLL.GetAllUserActions();

            Assert.AreEqual(p1.id, uac_l.Last().Patient_id);
            Assert.AreEqual(ClinicalBLL.UserActionCode.Patient_Updated.ToString(), uac_l.Last().Action_id);
            Assert.AreEqual(ClinicalBLL.UserActionDesc[ClinicalBLL.UserActionCode.Patient_Updated], uac_l.Last().Action_desc);

            var p2 = ClinicalBLL.GetPatient_ID(2);

            Assert.AreEqual(p1.MiddleName, p2.MiddleName);
            Assert.AreEqual(p1.City, p2.City);
            Assert.AreEqual(p1.State, p2.State);
        }