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); }
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); }
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); }