public virtual void TestClassRegistrationEvents()
		{
			ClassRegistrationEventsTestCase.EventFlag eventFlag = new ClassRegistrationEventsTestCase.EventFlag
				();
			IEventRegistry registry = EventRegistryFactory.ForObjectContainer(Db());
			registry.ClassRegistered += new System.EventHandler<Db4objects.Db4o.Events.ClassEventArgs>
				(new _IEventListener4_23(eventFlag).OnEvent);
			Store(new ClassRegistrationEventsTestCase.Data());
			Assert.IsTrue(eventFlag.eventOccurred);
		}
Exemplo n.º 2
0
        public virtual void TestClassRegistrationEvents()
        {
            ClassRegistrationEventsTestCase.EventFlag eventFlag = new ClassRegistrationEventsTestCase.EventFlag
                                                                      ();
            IEventRegistry registry = EventRegistryFactory.ForObjectContainer(Db());

            registry.ClassRegistered += new System.EventHandler <Db4objects.Db4o.Events.ClassEventArgs>
                                            (new _IEventListener4_23(eventFlag).OnEvent);
            Store(new ClassRegistrationEventsTestCase.Data());
            Assert.IsTrue(eventFlag.eventOccurred);
        }
Exemplo n.º 3
0
 public _IEventListener4_23(ClassRegistrationEventsTestCase.EventFlag eventFlag)
 {
     this.eventFlag = eventFlag;
 }