public void GetSequenceExtensionMethodSadPath()
        {
            CloudEvent cloudEvent = null;

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

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

            var sequence = cloudEvent.GetSequence();

            sequence.Should().BeNull();
        }
        public void GetSequenceExtensionMethodHappyPath3()
        {
            var cloudEvent = new CloudEvent()
            {
                Attributes = { [SequentialEvent.SequenceAttribute] = DateTime.Now }
            };

            var sequence = cloudEvent.GetSequence();

            sequence.Should().BeNull();
        }
        public void GetSequenceExtensionMethodHappyPath1()
        {
            var cloudEvent = new CloudEvent
            {
                Attributes = { [SequentialEvent.SequenceAttribute] = "MySequence" }
            };

            var sequence = cloudEvent.GetSequence();

            sequence.Should().Be("MySequence");
        }