public void GetCorrelationId_ReturnsNewGuid_IfTraceCorrelationManagerIdNotSet()
        {
            Guid traceId = Guid.Empty;

            using (var scope = new TraceIdScope(traceId))
            {
                Assert.NotEqual(traceId, new HttpRequestMessage().GetCorrelationId());
            }
        }
        public void GetCorrelationId_ReturnsTraceCorrelationManagerId_IfSet()
        {
            Guid traceId = Guid.NewGuid();

            using (var scope = new TraceIdScope(traceId))
            {
                Assert.Equal(traceId, CreateRequest().GetCorrelationId());
            }
        }
 public void GetCorrelationId_ReturnsNewGuid_IfTraceCorrelationManagerIdNotSet()
 {
     Guid traceId = Guid.Empty;
     using (var scope = new TraceIdScope(traceId))
     {
         Assert.NotEqual(traceId, CreateRequest().GetCorrelationId());
     }
 }
 public void GetCorrelationId_ReturnsTraceCorrelationManagerId_IfSet()
 {
     Guid traceId = Guid.NewGuid();
     using (var scope = new TraceIdScope(traceId))
     {
         Assert.Equal(traceId, new HttpRequestMessage().GetCorrelationId());
     }
 }