public void WhenSetLazyThenSetAttributes() { var member = For <MyClass> .Property(x => x.ReadOnly); var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); mapper.Lazy(true); Assert.That(mapping.lazy, Is.True); Assert.That(mapping.IsLazyProperty, Is.True); }
public void WhenSetLazyThenSetAttributes() { var member = ConfOrm.ForClass <MyClass> .Property(x => x.ReadOnly); var mapping = new HbmProperty(); var mapper = new PropertyMapper(member, mapping); mapper.Lazy(true); mapping.lazy.Should().Be.True(); mapping.IsLazyProperty.Should().Be.True(); }