public void ObjectWithIdAndAttributeThrowsException()
        {
            // Arrange
            var id    = Guid.NewGuid().ToString();
            var dummy = new DummyWithIdAndWithAttr
            {
                ActualyId = id,
                Name      = "Test",
                Id        = id
            };

            // Act & Assert
            Assert.Throws <MultipleCosmosIdsException>(() => dummy.ValidateEntityForCosmosDb());
        }
        public void HasJsonPropertyAttributeIdReturnsFalseIfMissing()
        {
            // Arrange
            var dummy = new DummyWithIdAndWithAttr
            {
                ActualyId = Guid.NewGuid().ToString()
            };

            var porentialJsonPropertyAttribute = typeof(DummyWithIdAndWithAttr)
                                                 .GetProperty(nameof(DummyWithIdAndWithAttr.Id))
                                                 .GetCustomAttribute <JsonPropertyAttribute>();

            // Act
            var result = porentialJsonPropertyAttribute.HasJsonPropertyAttributeId();

            // Assert
            result.Should().BeFalse();
        }