public virtual void testCompositeDbHistoryEventHandlerArgumentConstructorWithNullVarargs() { IHistoryEventHandler historyEventHandler = null; try { new CompositeDbHistoryEventHandler(historyEventHandler); Assert.Fail("NullValueException expected"); } catch (NullValueException e) { AssertTextPresent("History event handler is null", e.Message); } }
/// <summary> /// Adds the <seealso cref="IHistoryEventHandler" /> to the list of /// <seealso cref="IHistoryEventHandler" /> that consume the event. /// </summary> /// <param name="historyEventHandler"> /// the <seealso cref="IHistoryEventHandler" /> that consume the event. /// </param> public virtual void Add(IHistoryEventHandler historyEventHandler) { EnsureUtil.EnsureNotNull("History event handler", historyEventHandler); HistoryEventHandlers.Add(historyEventHandler); }