/// <exception cref="System.Exception"></exception> public virtual void Test() { var item = (STSItem) Db(). QueryByExample(typeof (STSItem)).Next(); var version = Db().GetObjectInfo(item).GetCommitTimestamp(); Assert.IsGreater(0, version); Assert.IsGreaterOrEqual(version, CurrentVersion()); Reopen(); var item2 = new STSItem("two" ); Db().Store(item2); Db().Commit(); var secondVersion = Db().GetObjectInfo(item2).GetCommitTimestamp(); Assert.IsGreater(version, secondVersion); Assert.IsGreaterOrEqual(secondVersion, CurrentVersion()); }
/// <exception cref="System.Exception"></exception> public virtual void Test() { var item = (STSItem)Db(). QueryByExample(typeof(STSItem)).Next(); var version = Db().GetObjectInfo(item).GetCommitTimestamp(); Assert.IsGreater(0, version); Assert.IsGreaterOrEqual(version, CurrentVersion()); Reopen(); var item2 = new STSItem("two" ); Db().Store(item2); Db().Commit(); var secondVersion = Db().GetObjectInfo(item2).GetCommitTimestamp(); Assert.IsGreater(version, secondVersion); Assert.IsGreaterOrEqual(secondVersion, CurrentVersion()); }