public static FeaturePublishedEvent ExtractFeaturePublishedEvent(this PublishFeatureCommand command, ISystemClock clock)
 {
     return(new FeaturePublishedEvent
     {
         Name = command.Name,
         PublishedBy = command.PublishedBy,
         PublishedOn = clock.UtcNow,
         Path = command.Path,
     });
 }
 public static void Validate(this PublishFeatureCommand command)
 {
     command.Required(nameof(command));
     command.Name.Required(nameof(command.Name));
     command.PublishedBy.Required(nameof(command.PublishedBy));
 }