Exemplo n.º 1
0
        public void Builders_ShouldWork_With_NetFramework_461()
        {
            DynamicFluentBuilder <TestEntity> builder = new DynamicFluentBuilder <TestEntity>();

            TestEntity result = builder.With(x => x.PropertyA, "Foo").build();

            result.PropertyA.Should().Be("Foo");
        }
Exemplo n.º 2
0
        public void DynamicBuilder_ShouldBeUsable()
        {
            DynamicFluentBuilder <TestEntity> builder = new DynamicFluentBuilder <TestEntity>();

            TestEntity result = builder.With(x => x.PropertyA, "Foo").build();

            result.PropertyA.Should().Be("Foo");
        }