Esempio n. 1
0
        public void It_Creates_With_No_Value()
        {
            var factory = new DynamicPropertyFactory();

            var property = factory.Create <TestEntity>(DefaultPropertyName);

            property.Value.Should().BeNull();
        }
Esempio n. 2
0
        public void It_Creates_With_Value()
        {
            var myValue = new TestEntity();
            var factory = new DynamicPropertyFactory();

            var property = factory.Create(DefaultPropertyName, myValue);

            property.Value.Should().Be(myValue);
        }