Exemplo n.º 1
0
        public void GivenPropertiesWithUnsupportedProperty_WhenRead_ThenSetUnsupportedProperty()
        {
            // Arrange

            var properties = new Dictionary <string, EntityProperty>
            {
                { "SomeProperty", new EntityProperty("{\"FirstName\":\"Tom\",\"LastName\":\"Hardy\"}") }
            };

            var actual = new TestTableEntity();

            // Act

            actual.ReadEntity(properties, new OperationContext());

            // Assert

            var expected = new MyCustomClass
            {
                FirstName = "Tom",
                LastName  = "Hardy"
            };

            actual.SomeProperty.Should().BeEquivalentTo(expected);
        }