public void TestMethod1() { DBConnector dBc = new DBConnector(); string result = dBc.connect(); Assert.AreEqual("Done", result); CentralStationHandler cshd = new CentralStationHandler(); CentralStation cs = new CentralStation(); Assert.IsInstanceOfType(cs, typeof(object)); }
public void setCentralStationId() { DBConnector dBConn = new DBConnector(); dBConn.connect(); CentralStationHandler centralStationHandler = new CentralStationHandler(); List <CentralStation> listcentral = new List <CentralStation>(); listcentral = centralStationHandler.getAllCentralStation(dBConn.getConn()); centralStationIdcomboBox.Items.Add("--Select Central Station--"); centralStationIdcomboBox.SelectedIndex = 0; for (int i = 0; i < listcentral.Count; i++) { centralStationIdcomboBox.Items.Add(listcentral[i].CentralStationName); } }
public void setBedsideIdCentral() { DBConnector dBConn = new DBConnector(); dBConn.connect(); CentralStationHandler centralStationHandler = new CentralStationHandler(); listBedside = centralStationHandler.getAllBedsideMonitor(dBConn.getConn(), centralStationIdcomboBox.SelectedItem.ToString()); centralbedsideIdcomboBox.Enabled = true; centralbedsideIdcomboBox.Items.Add("--Select Bedside ID--"); centralbedsideIdcomboBox.SelectedIndex = 0; for (int i = 0; i < listBedside.Count; i++) { centralbedsideIdcomboBox.Items.Add(listBedside[i].Id); } }