/// <exception cref="System.Exception"></exception> public void Run() { EventsTestCaseBase.Item item = this._enclosing.RetrieveItem(1); item.id = 10; this._enclosing.Db().Store(item); this._enclosing.Db().Commit(); }
private EventsTestCaseBase.Item RetrieveItem(int id) { IQuery query = NewQuery(typeof(EventsTestCaseBase.Item)); query.Descend("id").Constrain(id); IObjectSet results = query.Execute(); Assert.AreEqual(1, results.Count); EventsTestCaseBase.Item found = ((EventsTestCaseBase.Item)results.Next()); Assert.AreEqual(id, found.id); return(found); }