Ejemplo n.º 1
0
        public void RsTargetConnectorPreConnectValidTest()
        {
            //create a new instance of the sample connector
            var rsTargetConnector = new RS_TargetConnector();
            //get the ui definition
            string preConnectString = rsTargetConnector.PreConnect(new Dictionary <string, string>());

            //check that the definition has been received
            Assert.AreNotSame(string.Empty, preConnectString);
        }
Ejemplo n.º 2
0
        public void RsTargetConnectorConnectionValidTest()
        {
            //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 ad the connection has been opened
            Assert.IsTrue(rsTargetConnector.IsConnected);
        }
 public void RsTargetConnectorPreConnectValidTest()
 {
     //create a new instance of the sample connector
     var rsTargetConnector = new RS_TargetConnector();
     //get the ui definition
     string preConnectString = rsTargetConnector.PreConnect(new Dictionary<string, string>());
     //check that the definition has been received
     Assert.AreNotSame(string.Empty, preConnectString);
 }
        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);
        }