public void Convert_IfRowKeyIsWriteOnly_PopulatesRowKey()
        {
            // Arrange
            const string expectedRowKey = "RK";
            IConverter <TableEntity, PocoWithWriteOnlyRowKey> product =
                CreateProductUnderTest <PocoWithWriteOnlyRowKey>();
            TableEntity entity = new TableEntity
            {
                RowKey = expectedRowKey
            };
            // Act
            PocoWithWriteOnlyRowKey actual = product.Convert(entity);

            // Assert
            Assert.NotNull(actual);
            Assert.AreSame(expectedRowKey, actual.ReadRowKey);
        }
        public void Convert_IfRowKeyIsWriteOnly_Ignores()
        {
            // Arrange
            const string expectedPartitionKey = "PK";
            IConverter <PocoWithWriteOnlyRowKey, TableEntity> product =
                CreateProductUnderTest <PocoWithWriteOnlyRowKey>();
            PocoWithWriteOnlyRowKey input = new PocoWithWriteOnlyRowKey
            {
                PartitionKey = expectedPartitionKey,
                RowKey       = "IgnoreRK"
            };
            // Act
            TableEntity actual = product.Convert(input);

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