public void Test_PubSubMessenger_AbandonMessageEntity1()
        {
            // Arrange
            using var pubSub = new PubSubMessenger(new PubSubConfig { ProjectId = "test" });
            var test = new PubSubMessageEntity <string> {
                Body = "test"
            };

            // Act
            pubSub.Messages.AddOrUpdate(test.Body, null);
            pubSub.Abandon(test).GetAwaiter().GetResult();

            // Act/Assert
            pubSub.Messages.ContainsKey(test).Should().BeFalse();
            pubSub.Messages.Count.Should().Be(0);
        }
        public void Test_PubSubEnity_GetPropertiesTyped()
        {
            // Arrange
            var pubSubEntity = new PubSubMessageEntity <TestClass>
            {
                Body = new TestClass {
                    Property1 = "PropTest"
                },
                Properties = new Dictionary <string, object>
                {
                    { "Property1", "PropValue" }
                }
            };

            // Act
            var typedProps = pubSubEntity.GetPropertiesTyped <TestClass>();

            // Assert
            typedProps.Should().NotBe(null);
            typedProps.Property1.Should().Be("PropValue");
        }