public void ReplyOptions_GetCorrelationId_Should_Return_Null_When_No_CorrelationId_Configured()
        {
            var options = new ReplyOptions();

            var correlationId = options.GetCorrelationId();

            Assert.IsNull(correlationId);
        }
Exemplo n.º 2
0
        public void ReplyOptions_GetCorrelationId_Should_Return_Null_When_No_CorrelationId_Configured()
        {
            var options = new ReplyOptions();

            var correlationId = options.GetCorrelationId();

            Assert.IsNull(correlationId);
        }
        public void ReplyOptions_GetCorrelationId_Should_Return_Configured_CorrelationId()
        {
            const string expectedCorrelationId = "custom correlation id";
            var options = new ReplyOptions();
            options.SetCorrelationId(expectedCorrelationId);

            var correlationId = options.GetCorrelationId();

            Assert.AreEqual(expectedCorrelationId, correlationId);
        }
Exemplo n.º 4
0
        public void ReplyOptions_GetCorrelationId_Should_Return_Configured_CorrelationId()
        {
            const string expectedCorrelationId = "custom correlation id";
            var          options = new ReplyOptions();

            options.SetCorrelationId(expectedCorrelationId);

            var correlationId = options.GetCorrelationId();

            Assert.AreEqual(expectedCorrelationId, correlationId);
        }