public CommandHandler(CentralValidations validator, IUnityOfWork unityOfWork, ICommandRepository commandRepository, DomainEventBus eventBus)
 {
     _validator         = validator;
     _uoW               = unityOfWork;
     _commandRepository = commandRepository;
     _eventBus          = eventBus;
 }
 public CreateUserCommand(
     string name,
     string password,
     string email,
     string login,
     IUserRepository repository,
     CentralValidations centralValidations,
     DomainEventBus eventBus)
 {
     _repository         = repository;
     _centralValidations = centralValidations;
     eventBus            = _eventBus;
 }