Exemplo n.º 1
0
        public void does_not_translate_remote_host()
        {
            var address = "lq.tcp://server1:2230/foo";
            var uri     = new LightningUri(address);

            uri.Address.ShouldBe(address.ToUri());
            uri.Original.ShouldBe(address.ToUri());
        }
Exemplo n.º 2
0
        public void translates_localhost_to_machine_name()
        {
            var uri = new LightningUri("lq.tcp://localhost:2200/foo");

            uri.Original.ShouldBe(new Uri("lq.tcp://localhost:2200/foo"));
            uri.Port.ShouldBe(2200);
            uri.QueueName.ShouldBe("foo");

            uri.Address.Host.EqualsIgnoreCase(Environment.MachineName).ShouldBeTrue();
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     theUri = new LightningUri("lq.tcp://localhost:2424/some_queue");
 }
Exemplo n.º 4
0
 public void SetUp()
 {
     theUri = new LightningUri("lq.tcp://localhost:2424/some_queue");
 }
Exemplo n.º 5
0
        public void translates_home_ip_to_machine_name()
        {
            var uri = new LightningUri("lq.tcp://127.0.0.1:2200/foo");

            uri.Address.Host.EqualsIgnoreCase(Environment.MachineName).ShouldBeTrue();
        }