public void GetUserProperties_WhenDomainEventContainsRegisteredPropertyNameAndDomainEventPropertyIsComplex_ReturnsDictionaryWithoutPropertyValue()
        {
            var strategy    = new GlobalUserPropertyStrategy("Id");
            var domainEvent = new TestDomainEventWithComplexProperty(new ComplexId("123"));

            var results = strategy.GetUserProperties(domainEvent).ToArray();

            results.Should().HaveCount(0);
        }
        public void GetUserProperties_WhenDomainEventContainsNonRegisteredPropertyName_ReturnsDictionaryWithoutPropertyValue()
        {
            var strategy    = new GlobalUserPropertyStrategy();
            var domainEvent = new TestDomainEvent(Guid.NewGuid());

            var results = strategy.GetUserProperties(domainEvent).ToArray();

            results.Should().HaveCount(0);
        }
        public void GetUserProperties_WhenDomainEventContainsRegisteredPropertyName_ReturnsDictionaryWithPropertyValue()
        {
            var id          = Guid.NewGuid();
            var strategy    = new GlobalUserPropertyStrategy("Id");
            var domainEvent = new TestDomainEvent(id);

            var results = strategy.GetUserProperties(domainEvent).ToArray();

            results.Should().HaveCount(1);
            results.First().Key.Should().Be("Id");
            results.First().Value.Should().Be(id);
        }