public void testCreateGetPatientDictionary()
 {
     String assesmentId = "1";
     MedicalInformationManagementSystem.ViewPatientEMR vwEMR = new MedicalInformationManagementSystem.ViewPatientEMR();
     Assert.IsNotNull(vwEMR);
     Dictionary<String, String> dict = vwEMR.createPatientDictionary(assesmentId);
     Assert.IsNotNull(dict);
     Assert.IsTrue(dict.ContainsKey("@patientId"));
     Assert.AreSame(dict["@patientId"], assesmentId);
 }
Example #2
0
        public void testCreateGetPatientDictionary()
        {
            String assesmentId = "1";

            MedicalInformationManagementSystem.ViewPatientEMR vwEMR = new MedicalInformationManagementSystem.ViewPatientEMR();
            Assert.IsNotNull(vwEMR);
            Dictionary <String, String> dict = vwEMR.createPatientDictionary(assesmentId);

            Assert.IsNotNull(dict);
            Assert.IsTrue(dict.ContainsKey("@patientId"));
            Assert.AreSame(dict["@patientId"], assesmentId);
        }
        public void testgetPatientViewEmr()
        {
            MedicalInformationManagementSystem.ViewPatientEMR vwEMR = new MedicalInformationManagementSystem.ViewPatientEMR();
            Assert.IsNotNull(vwEMR);
            String assesmentId = "1";

            Dictionary<String, String> d = vwEMR.createPatientDictionary(assesmentId);
            //DatabaseConnector con = new DatabaseConnector();
            //DataTable dat = vwEMR.createGetPatient(d);
            //Assert.IsNotNull(dat);
            // testing for just for one value
            //Assert.AreEqual(dat.Rows[0][0].ToString(), "1");
        }
Example #4
0
        public void testgetPatientViewEmr()
        {
            MedicalInformationManagementSystem.ViewPatientEMR vwEMR = new MedicalInformationManagementSystem.ViewPatientEMR();
            Assert.IsNotNull(vwEMR);
            String assesmentId = "1";

            Dictionary <String, String> d = vwEMR.createPatientDictionary(assesmentId);
            //DatabaseConnector con = new DatabaseConnector();
            //DataTable dat = vwEMR.createGetPatient(d);
            //Assert.IsNotNull(dat);
            // testing for just for one value
            //Assert.AreEqual(dat.Rows[0][0].ToString(), "1");
        }