public virtual void testCompositeDbHistoryEventHandlerNonArgumentConstructorAddTwoNotNullEvents() { var compositeDbHistoryEventHandler = new CompositeDbHistoryEventHandler(); compositeDbHistoryEventHandler.Add(new CustomDbHistoryEventHandler(this)); compositeDbHistoryEventHandler.Add(new CustomDbHistoryEventHandler(this)); //processEngineConfiguration.HistoryEventHandler = compositeDbHistoryEventHandler; StartProcessAndCompleteUserTask(); Assert.AreEqual(4, CountCustomHistoryEventHandler); Assert.AreEqual(2, historyService.CreateHistoricDetailQuery() .Count()); }
public virtual void testCompositeDbHistoryEventHandlerNonArgumentConstructorAddNullEvent() { var compositeDbHistoryEventHandler = new CompositeDbHistoryEventHandler(); try { compositeDbHistoryEventHandler.Add(null); Assert.Fail("NullValueException expected"); } catch (NullValueException e) { AssertTextPresent("History event handler is null", e.Message); } }