public void DisallowUnpersistEventWithSets() { Session.BeginUpdate(); Event1 = QueryHelper.Read <Event>(Event1SimpleKey, Location1, Session); Assert.Throws <ConstraintException>(() => Event1.Unpersist(Session)); Session.Commit(); }
public void DisallowUnpersistEventWithSets() { Session.BeginUpdate(); Event1 = QueryHelper.Read <Event>(Event1SimpleKey, Location1, Session); Assert.Throws <ConstraintException>(() => Event1.Unpersist(Session)); Session.Commit(); }