Ejemplo n.º 1
0
 public static void Cleanup()
 {
     if (_rsTargetConnector.IsConnected)
     {
         _rsTargetConnector.Disconnect();
     }
 }
Ejemplo n.º 2
0
        public void RsTargetConnectorDisconnectValidTest()
        {
            //create a new instance of the sample connector
            RS_TargetConnector rsTargetConnector = new RS_TargetConnector();

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

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

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

            //do a check the connector IsConnected flag is false
            Assert.IsFalse(rsTargetConnector.IsConnected);
        }
        public void RsTargetConnectorDisconnectValidTest()
        {
            //create a new instance of the sample connector
            RS_TargetConnector rsTargetConnector = new RS_TargetConnector();

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

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

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

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