public void StartConsumeActivity_WithBaggageHeader_ActivityBaggageIsSet()
        {
            var headers = new MessageHeaderCollection
            {
                { DefaultMessageHeaders.TraceId, "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01" },
                { DefaultMessageHeaders.TraceBaggage, "key1=value1" }
            };

            var      envelope = CreateInboundEnvelope(headers);
            Activity activity = ActivitySources.StartConsumeActivity(envelope);

            activity.Baggage.Should().ContainEquivalentOf(new KeyValuePair <string, string>("key1", "value1"));
        }
        public void StartConsumeActivity_WithoutStateAndBaggageHeaders_ActivityStateAndBaggageAreNotSet()
        {
            var headers = new MessageHeaderCollection
            {
                { DefaultMessageHeaders.TraceId, "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01" }
            };

            var      envelope = CreateInboundEnvelope(headers);
            Activity activity = ActivitySources.StartConsumeActivity(envelope);

            activity.TraceStateString.Should().BeNull();
            activity.Baggage.Should().BeEmpty();
        }