public void getPatientEMRAccordingToDate() { PatientAssesment pa = new PatientAssesment(); Assert.IsNotNull(pa); String emrDate = "2011/11/11"; String assesmentId = "1"; Dictionary <String, String> d = pa.createEmrRequest(assesmentId, emrDate); // DatabaseConnector con=new DatabaseConnector(); // DataTable dat = pa.getPatientEMRAccordingToDate(d,con); // Assert.IsNotNull(dat); // testing for just for one value // Assert.AreEqual(dat.Rows[0][1].ToString(),"2"); }
public void testcreateEmrRequest() { PatientAssesment pa = new PatientAssesment(); Assert.IsNotNull(pa); String emrDate = "11/23/2013"; String assesmentId = "1"; Dictionary <String, String> d = pa.createEmrRequest(assesmentId, emrDate); Assert.IsNotNull(d); Assert.IsTrue(d.ContainsKey("@patientId")); Assert.IsTrue(d.ContainsKey("@emrDate")); Assert.AreSame(d["@patientId"], assesmentId); Assert.AreSame(d["@emrDate"], emrDate); }