コード例 #1
0
 /// <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);
 }
コード例 #2
0
 public void RouteEventCanNotBeNull()
 {
     Assert.Throws <ArgumentNullException>(() => _sut.Route(null));
 }