Close() public method

Close the Connection
public Close ( ) : void
return void
        public void TestACustomCreatedExceptionHandlerWhichReturnsAValueAsResultThatGetsInvokedWithOutgoingPort()
        {
            string destination = TcpUrlOpenEngSB + tmpGuid.ToString();

            IOutgoingPort outPort = new JmsOutgoingPort(destination, new TestCustomExceptionHandler(), ConnectorId);
            outPort.Close();
            outPort.Send("Error");

            Assert.AreEqual<int>(TestCustomExceptionHandler.Executions, 2);
        }
        public void TestJmsOutgoingPortWithQueueNameExceptionHandler()
        {
            Guid tmpGuid = Guid.NewGuid();
            string destination = TcpUrlOpenEngSB + tmpGuid.ToString();

            IOutgoingPort outPort = new JmsOutgoingPort(destination, new TestCustomExceptionHandler(), ConnectorId);
            outPort.Close();
            outPort.Send("Error", "NotExist");

            Assert.AreEqual<int>(TestCustomExceptionHandler.Executions, 2);
        }