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();
		}
 protected override void Store(IObjectContainerAdapter objectContainer)
 {
     Item nextItem = null;
     for (var i = 9; i >= 0; i--)
     {
         var storedItem = new Item
             ("item" + i, nextItem);
         objectContainer.Store(storedItem);
         nextItem = storedItem;
     }
     objectContainer.Commit();
     var item = QueryForItem(objectContainer, 0);
     for (var i = 0; i < 5; i++)
     {
         objectContainer.Delete(item);
         item = item._next;
     }
     objectContainer.Commit();
 }
示例#3
0
 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();
 }
示例#4
0
        protected override void Store(IObjectContainerAdapter objectContainer)
        {
            Item nextItem = null;

            for (var i = 9; i >= 0; i--)
            {
                var storedItem = new Item
                                     ("item" + i, nextItem);
                objectContainer.Store(storedItem);
                nextItem = storedItem;
            }
            objectContainer.Commit();
            var item = QueryForItem(objectContainer, 0);

            for (var i = 0; i < 5; i++)
            {
                objectContainer.Delete(item);
                item = item._next;
            }
            objectContainer.Commit();
        }