예제 #1
0
        public void TestStartStop()
        {
            var nmsSession = new NmsSession(BrokerUrl, new TestApplication())
            {
                ProducerQueue = FerCommandQueue
            };

            nmsSession.Start();

            WaitFor(Connected, nmsSession, 10000);
            Assert.IsTrue(nmsSession.Connected, "Connection failed to start");

            nmsSession.Stop();

            WaitFor(Disconnected, nmsSession, 3000);
            Assert.IsFalse(nmsSession.Connected, "Did not disconnect");
        }
예제 #2
0
 public void Stop()
 {
     _nmsSession.Stop();
 }