public static void Cleanup()
 {
     if (_sysConnector.IsConnected)
     {
         _sysConnector.Disconnect();
     }
 }
        public void SysConnectorDisconnectValidTest()
        {
            //create a new instance of the sample connector
            var sysConnector = new SYSConnector();

            //call the connect method from the connector and pass in the connection properties dictionary
            sysConnector.Connect(_connectionProperties);

            //do a check that the IsConnected flag is true
            Assert.IsTrue(sysConnector.IsConnected);

            //call the disconnect method from the connector
            sysConnector.Disconnect();

            //do a check the connector IsConnected flag is false
            Assert.IsFalse(sysConnector.IsConnected);
        }
        public void SysConnectorDisconnectValidTest()
        {
            //create a new instance of the sample connector
            var sysConnector = new SYSConnector();

            //call the connect method from the connector and pass in the connection properties dictionary
            sysConnector.Connect(_connectionProperties);

            //do a check that the IsConnected flag is true
            Assert.IsTrue(sysConnector.IsConnected);

            //call the disconnect method from the connector
            sysConnector.Disconnect();

            //do a check the connector IsConnected flag is false
            Assert.IsFalse(sysConnector.IsConnected);
        }