public void TryAndConvertToDocumentList_Fail()
        {
            IReadOnlyList <Document> convertedValue;

            Assert.False(CosmosDBTriggerBinding.TryAndConvertToDocumentList(null, out convertedValue));
            Assert.False(CosmosDBTriggerBinding.TryAndConvertToDocumentList("some weird string", out convertedValue));
            Assert.False(CosmosDBTriggerBinding.TryAndConvertToDocumentList(Guid.NewGuid(), out convertedValue));
        }
        public void TryAndConvertToDocumentList_Succeed()
        {
            Assert.True(CosmosDBTriggerBinding.TryAndConvertToDocumentList("[{\"id\":\"123\"}]", out IReadOnlyList <Document> convertedValue));
            Assert.Equal("123", convertedValue[0].Id);

            IReadOnlyList <Document> triggerValue = new List <Document>()
            {
                new Document()
                {
                    Id = "123"
                }
            };

            Assert.True(CosmosDBTriggerBinding.TryAndConvertToDocumentList(triggerValue, out convertedValue));
            Assert.Equal(triggerValue[0].Id, convertedValue[0].Id);
        }