/// <summary> /// Routes the specified <paramref name="event"/> to a configured state handler, if any. /// </summary> /// <param name="event">The event to route.</param> /// <exception cref="ArgumentNullException">Thrown when the <paramref name="event"/> is null.</exception> public void Route(object @event) { if (@event == null) { throw new ArgumentNullException(nameof(@event)); } _router.Route(@event); }
public void RouteEventCanNotBeNull() { Assert.Throws <ArgumentNullException>(() => _sut.Route(null)); }