public virtual void TestReentrantUpdateAfterActivationThrows()
 {
     UpdateInCallbackThrowsTestCase.Item foo = ItemByName("foo");
     Db().Deactivate(foo);
     EventRegistry().Activated += new System.EventHandler <Db4objects.Db4o.Events.ObjectInfoEventArgs>
                                      (new _IEventListener4_71(this).OnEvent);
     Db().Activate(foo, 1);
 }
            public void OnEvent(object sender, Db4objects.Db4o.Events.ObjectInfoEventArgs args
                                )
            {
                object obj = ((ObjectInfoEventArgs)args).Object;

                if (!(obj is UpdateInCallbackThrowsTestCase.Item))
                {
                    return;
                }
                UpdateInCallbackThrowsTestCase.Item item = (UpdateInCallbackThrowsTestCase.Item)obj;
                if (!item._name.Equals("foo"))
                {
                    return;
                }
                Assert.Expect(typeof(Db4oIllegalStateException), new _ICodeBlock_83(this, item));
            }
            public void OnEvent(object sender, Db4objects.Db4o.Events.CancellableObjectEventArgs
                                args)
            {
                object obj = ((CancellableObjectEventArgs)args).Object;

                if (!(obj is UpdateInCallbackThrowsTestCase.Item))
                {
                    return;
                }
                Transaction transaction = (Transaction)((CancellableObjectEventArgs)args).Transaction
                                              ();
                IObjectContainer container = transaction.ObjectContainer();

                UpdateInCallbackThrowsTestCase.Item foo   = (UpdateInCallbackThrowsTestCase.Item)obj;
                UpdateInCallbackThrowsTestCase.Item child = foo._child;
                if (isNetworking)
                {
                    container.Activate(child, 1);
                }
                child._name += "*";
                container.Store(child);
            }
			public Item(string name, UpdateInCallbackThrowsTestCase.Item child)
			{
				_name = name;
				_child = child;
			}
 public Item(string name, UpdateInCallbackThrowsTestCase.Item child)
 {
     _name  = name;
     _child = child;
 }
 public _ICodeBlock_116(_IEventListener4_102 _enclosing, UpdateInCallbackThrowsTestCase.Item
                        item)
 {
     this._enclosing = _enclosing;
     this.item       = item;
 }