public void Convert_IfPartitionKeyIsWriteOnly_PopulatesPartitionKey()
        {
            // Arrange
            const string expectedPartitionKey = "PK";
            IConverter <TableEntity, PocoWithWriteOnlyPartitionKey> product =
                CreateProductUnderTest <PocoWithWriteOnlyPartitionKey>();
            TableEntity entity = new TableEntity
            {
                PartitionKey = expectedPartitionKey
            };
            // Act
            PocoWithWriteOnlyPartitionKey actual = product.Convert(entity);

            // Assert
            Assert.NotNull(actual);
            Assert.AreSame(expectedPartitionKey, actual.ReadPartitionKey);
        }
        public void Convert_IfPartitionKeyIsWriteOnly_Ignores()
        {
            // Arrange
            const string expectedRowKey = "RK";
            IConverter <PocoWithWriteOnlyPartitionKey, TableEntity> product =
                CreateProductUnderTest <PocoWithWriteOnlyPartitionKey>();
            PocoWithWriteOnlyPartitionKey input = new PocoWithWriteOnlyPartitionKey
            {
                PartitionKey = "IgnorePK",
                RowKey       = expectedRowKey
            };
            // Act
            TableEntity actual = product.Convert(input);

            // Assert
            Assert.NotNull(actual);
            Assert.Null(actual.PartitionKey);
            Assert.AreSame(expectedRowKey, actual.RowKey);
        }