public static void Cleanup()
 {
     if (_rsSourceConnector.IsConnected)
     {
         _rsSourceConnector.Disconnect();
     }
 }
        public void RsSourceConnectorDisconnectValidTest()
        {
            //create a new instance of the sample connector
            var rsSourceConnector = new RS_SourceConnector();

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

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

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

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

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

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

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

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