public void Convert_IfETagIsReadOnly_PopulatesETag()
        {
            // Arrange
            string expectedETag = "abc";
            IConverter <PocoWithReadOnlyETag, TableEntity> product = CreateProductUnderTest <PocoWithReadOnlyETag>();
            PocoWithReadOnlyETag input = new PocoWithReadOnlyETag
            {
                WriteETag = expectedETag
            };
            // Act
            TableEntity actual = product.Convert(input);

            // Assert
            Assert.NotNull(actual);
            Assert.AreEqual(new ETag(expectedETag), actual.ETag);
        }
        public void Convert_IfETagIsReadOnly_Ignores()
        {
            // Arrange
            const string expectedPartitionKey = "PK";
            IConverter <TableEntity, PocoWithReadOnlyETag> product = CreateProductUnderTest <PocoWithReadOnlyETag>();
            TableEntity entity = new TableEntity
            {
                PartitionKey = expectedPartitionKey
            };
            // Act
            PocoWithReadOnlyETag actual = product.Convert(entity);

            // Assert
            Assert.NotNull(actual);
            Assert.AreSame(expectedPartitionKey, actual.PartitionKey);
        }