Ejemplo n.º 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");
        }
Ejemplo n.º 2
0
 public NmsClientApp(string clientName)
 {
     _clientName = clientName;
     _nmsSession = new NmsSession(this);
 }