public void RsSourceConnectorPreConnectValidTest() { //create a new instance of the sample connector var rsSourceConnector = new RS_SourceConnector(); //get the ui definition string preConnectString = rsSourceConnector.PreConnect(new Dictionary <string, string>()); //check that the definition has been received Assert.AreNotSame(string.Empty, preConnectString); }
public void RsSourceConnectorConnectionValidTest() { //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 ad the connection has been opened Assert.IsTrue(rsSourceConnector.IsConnected); }
public void RsSourceConnectorPreConnectValidTest() { //create a new instance of the sample connector var rsSourceConnector = new RS_SourceConnector(); //get the ui definition string preConnectString = rsSourceConnector.PreConnect(new Dictionary<string, string>()); //check that the definition has been received Assert.AreNotSame(string.Empty, preConnectString); }
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); }