protected override void AssertObjectsAreReadable(IExtObjectContainer objectContainer ) { AssertItemCount(objectContainer, 5); IxFreespaceMigrationTestCase.Item item = QueryForItem(objectContainer.Query(), 5); for (int i = 5; i < 10; i++) { Assert.AreEqual("item" + i, item._name); item = item._next; } }
protected override void Store(IObjectContainerAdapter objectContainer) { IxFreespaceMigrationTestCase.Item nextItem = null; for (int i = 9; i >= 0; i--) { IxFreespaceMigrationTestCase.Item storedItem = new IxFreespaceMigrationTestCase.Item ("item" + i, nextItem); objectContainer.Store(storedItem); nextItem = storedItem; } objectContainer.Commit(); IxFreespaceMigrationTestCase.Item item = QueryForItem(objectContainer, 0); for (int i = 0; i < 5; i++) { objectContainer.Delete(item); item = item._next; } objectContainer.Commit(); }
public Item(string name, IxFreespaceMigrationTestCase.Item next_) { _name = name; _next = next_; }