public void cant_register_null_handler() { Assert.Throws<ArgumentNullException>(() => _app.RegisterHandler<MyEvent>((Action<IDomainEvent>)null)); }