Exemplo n.º 1
0
        public void RemoveConnectionProvider()
        {
            var server = new TempestServer(provider, MessageTypes.Reliable);

            Assert.IsFalse(provider.IsRunning);

            server.RemoveConnectionProvider(provider);
            Assert.IsFalse(provider.IsRunning);
        }
Exemplo n.º 2
0
        public void RemoveConnectionProviderGlobalOrder()
        {
            var server = new TempestServer(MessageTypes.Reliable);

            server.AddConnectionProvider(provider, ExecutionMode.GlobalOrder);
            Assert.IsFalse(provider.IsRunning);

            server.RemoveConnectionProvider(provider);
            Assert.IsFalse(provider.IsRunning);
        }
Exemplo n.º 3
0
        public void RemoveNotAddedConnectionProvider()
        {
            var p = new MockConnectionProvider(protocol);

            p.Start(MessageTypes.Reliable);
            Assert.IsTrue(p.IsRunning);

            var server = new TempestServer(provider, MessageTypes.Reliable);

            server.RemoveConnectionProvider(p);
            Assert.IsTrue(p.IsRunning);
        }
Exemplo n.º 4
0
        public void RemoveConnectionProviderNull()
        {
            var server = new TempestServer(provider, MessageTypes.Reliable);

            Assert.Throws <ArgumentNullException> (() => server.RemoveConnectionProvider(null));
        }
Exemplo n.º 5
0
        public void RemoveNotAddedConnectionProvider()
        {
            var p = new MockConnectionProvider (protocol);
            p.Start (MessageTypes.Reliable);
            Assert.IsTrue (p.IsRunning);

            var server = new TempestServer (provider, MessageTypes.Reliable);
            server.RemoveConnectionProvider (p);
            Assert.IsTrue (p.IsRunning);
        }
Exemplo n.º 6
0
 public void RemoveConnectionProviderNull()
 {
     var server = new TempestServer (provider, MessageTypes.Reliable);
     Assert.Throws<ArgumentNullException> (() => server.RemoveConnectionProvider (null));
 }
Exemplo n.º 7
0
        public void RemoveConnectionProviderGlobalOrder()
        {
            var server = new TempestServer (MessageTypes.Reliable);
            server.AddConnectionProvider (provider, ExecutionMode.GlobalOrder);
            Assert.IsFalse (provider.IsRunning);

            server.RemoveConnectionProvider (provider);
            Assert.IsFalse (provider.IsRunning);
        }
Exemplo n.º 8
0
        public void RemoveConnectionProvider()
        {
            var server = new TempestServer (provider, MessageTypes.Reliable);
            Assert.IsFalse (provider.IsRunning);

            server.RemoveConnectionProvider (provider);
            Assert.IsFalse (provider.IsRunning);
        }