public void GetCorrelationIdExtensionMethodSadPath()
        {
            CloudEvent cloudEvent = null !;

            Action act = () => cloudEvent.GetCorrelationId();

            act.Should().ThrowExactly <ArgumentNullException>().WithMessage("*cloudEvent*");
        }
        public void GetCorrelationIdExtensionMethodHappyPath2()
        {
            var cloudEvent = new CloudEvent();

            cloudEvent.Attributes.Should().BeEmpty();

            cloudEvent.GetCorrelationId();

            cloudEvent.Attributes.Should().ContainKey(CorrelatedEvent.CorrelationIdAttribute)
            .WhoseValue.Should().NotBeNull();
        }
        public void GetCorrelationIdExtensionMethodHappyPath1()
        {
            var cloudEvent = new CloudEvent
            {
                Attributes = { [CorrelatedEvent.CorrelationIdAttribute] = "MyCorrelationId" }
            };

            var correlationId = cloudEvent.GetCorrelationId();

            correlationId.Should().Be("MyCorrelationId");
        }