public static IEnumerable <ICommandHandlerWrapper <TCommand> > GetCommandHandlerWrappers <TCommand>(this IHandlerRegistry handlerRegistry) where TCommand : ICommand => handlerRegistry.GetCommandHandlerWrappers(typeof(TCommand)).Cast <ICommandHandlerWrapper <TCommand> >();