public void TestSNMPController() { bool successfull = false; try { string connectionString = Properties.Settings.Default.TestDatabase; SNMPController controller = new SNMPController(connectionString); controller.GetSNMPDataFromAgents(); successfull = true; } catch (Exception exc) { successfull = false; } Assert.IsTrue(successfull); }
private static void OnShortTimedEvent(object source, ElapsedEventArgs e) { controller.GetSNMPDataFromAgents(); }