public void testCreateSearchPatientExistDictionary() { String patId = "1"; MedicalInformationManagementSystem.SearchPatient pa = new SearchPatient(); Assert.IsNotNull(pa); Dictionary<String, String> dict = pa.createCheckPatientExistsDictionary(patId); Assert.IsNotNull(dict); Assert.IsTrue(dict.ContainsKey("@patientId")); Assert.AreSame(dict["@patientId"], patId); }
public void testCreateSearchPatientExistDataTable() { String patId = "1"; MedicalInformationManagementSystem.SearchPatient pa = new SearchPatient(); Assert.IsNotNull(pa); Dictionary<String, String> dict = pa.createCheckPatientExistsDictionary(patId); Assert.IsNotNull(dict); Assert.IsTrue(dict.ContainsKey("@patientId")); Assert.AreSame(dict["@patientId"], patId); DataTable dat = new DataTable(); //dat = pa.checkPatientExists(dict); //Assert.IsNotNull(dat); // Assert.AreEqual(dat.Rows[0][1],0); }