public SubmitCommitmentCommandHandler(
            IEmployerCommitmentApi commitmentApi,
            IMediator mediator,
            EmployerApprenticeshipsServiceConfiguration configuration,
            IProviderEmailLookupService providerEmailLookupService,
            ILogger logger)
        {
            _commitmentApi = commitmentApi;
            _mediator      = mediator;
            _configuration = configuration;
            _providerEmailLookupService = providerEmailLookupService;
            _logger = logger;

            _validator = new SubmitCommitmentCommandValidator();
        }
        public CreateCommitmentCommandHandler(
            IEmployerCommitmentApi commitmentApi,
            IMediator mediator,
            ILogger logger,
            EmployerApprenticeshipsServiceConfiguration configuration,
            IHashingService hashingService,
            IProviderEmailLookupService providerEmailLookupService)
        {
            if (commitmentApi == null)
            {
                throw new ArgumentNullException(nameof(commitmentApi));
            }
            if (mediator == null)
            {
                throw new ArgumentNullException(nameof(mediator));
            }

            _commitmentApi              = commitmentApi;
            _mediator                   = mediator;
            _logger                     = logger;
            _configuration              = configuration;
            _hashingService             = hashingService;
            _providerEmailLookupService = providerEmailLookupService;
        }