public void CanSetMutable() { var mapdoc = new HbmMapping(); var hbmNaturalId = new HbmNaturalId(); var nid = new NaturalIdMapper(typeof(EntitySimpleWithNaturalId), hbmNaturalId, mapdoc); nid.Mutable(true); hbmNaturalId.mutable.Should().Be.True(); }
public void CanSetMutable() { var mapdoc = new HbmMapping(); var hbmClass = new HbmClass(); var nid = new NaturalIdMapper(typeof(EntitySimpleWithNaturalId), hbmClass, mapdoc); // to have the natural-id assigned ot must have at least a property nid.Property(For <EntitySimpleWithNaturalId> .Property(x => x.Something), pm => { }); var hbmNaturalId = hbmClass.naturalid; nid.Mutable(true); Assert.That(hbmNaturalId.mutable, Is.True); }