示例#1
0
        public void Check_without_credentials_and_virtual_host_success()
        {
            var setting = new ElwarkRabbitConfiguration
            {
                Hostnames = new List <string> {
                    "host"
                },
            };

            var connection = setting.GetConnectionString();

            Assert.Equal("amqp://host:5672/", connection);
        }
示例#2
0
        public void Check_full_paramenters_success()
        {
            var setting = new ElwarkRabbitConfiguration
            {
                Hostnames = new List <string> {
                    "host"
                },
                Username    = "******",
                Password    = "******",
                VirtualHost = "virtualhost",
            };

            var connection = setting.GetConnectionString();

            Assert.Equal("amqp://*****:*****@host:5672/virtualhost", connection);
        }
示例#3
0
        public void Check_custom_port_success()
        {
            var setting = new ElwarkRabbitConfiguration
            {
                Hostnames = new List <string> {
                    "host"
                },
                Username    = "******",
                Password    = "******",
                VirtualHost = "virtualhost",
                Port        = 1111
            };

            var connection = setting.GetConnectionString();

            Assert.Equal("amqp://*****:*****@host:1111/virtualhost", connection);
        }