public void ApplyStructuralProperty_ThrowsArgumentNull_StructuralProperty()
        {
            var deserializer = new ODataResourceDeserializer(_deserializerProvider);

            Assert.ThrowsArgumentNull(
                () => deserializer.ApplyStructuralProperty(42, structuralProperty: null, structuredType: _productEdmType, readContext: _readContext),
                "structuralProperty");
        }
        public void ApplyStructuralProperty_SetsProperty()
        {
            // Arrange
            var           deserializer = new ODataResourceDeserializer(_deserializerProvider);
            Product       product      = new Product();
            ODataProperty property     = new ODataProperty {
                Name = "ID", Value = 42
            };

            // Act
            deserializer.ApplyStructuralProperty(product, property, _productEdmType, _readContext);

            // Assert
            Assert.Equal(42, product.ID);
        }