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"); }
public void Start() { _nmsSession.Start(); }