Example #1
0
        public void WithAddress_WithCorrectHostnameAndPort()
        {
            // Arrange
            var contextBuilder = new RabbitMQContextBuilder();

            // Act
            contextBuilder.WithAddress("localhost", 9000);

            // Assert
            Assert.AreEqual("localhost", contextBuilder.HostName);
            Assert.AreEqual(9000, contextBuilder.Port);
        }