Пример #1
0
 public RequiredPaymentsService(ActorService actorService,
                                ActorId actorId,
                                IPaymentLogger paymentLogger,
                                IApprenticeshipKeyService apprenticeshipKeyService,
                                Func <IPaymentHistoryRepository> paymentHistoryRepositoryFactory,
                                IApprenticeshipContractType2EarningsEventProcessor contractType2EarningsEventProcessor,
                                IApprenticeshipAct1RedundancyEarningsEventProcessor act1RedundancyEarningsEventProcessor,
                                IFunctionalSkillEarningsEventProcessor functionalSkillEarningsEventProcessor,
                                IPayableEarningEventProcessor payableEarningEventProcessor,
                                IRefundRemovedLearningAimProcessor refundRemovedLearningAimProcessor,
                                ITelemetry telemetry)
     : base(actorService, actorId)
 {
     this.paymentLogger = paymentLogger;
     this.paymentHistoryRepositoryFactory       = paymentHistoryRepositoryFactory;
     this.contractType2EarningsEventProcessor   = contractType2EarningsEventProcessor;
     this.act1RedundancyEarningsEventProcessor  = act1RedundancyEarningsEventProcessor;
     this.functionalSkillEarningsEventProcessor = functionalSkillEarningsEventProcessor;
     this.payableEarningEventProcessor          = payableEarningEventProcessor;
     this.refundRemovedLearningAimProcessor     = refundRemovedLearningAimProcessor;
     this.telemetry                 = telemetry;
     apprenticeshipKeyString        = actorId.GetStringId();
     apprenticeshipKey              = apprenticeshipKeyService.ParseApprenticeshipKey(apprenticeshipKeyString);
     logSafeApprenticeshipKeyString = CreateLogSafeApprenticeshipKeyString(apprenticeshipKey);
 }
Пример #2
0
 public IdentifiedRemovedLearningAimHandler(IApprenticeshipKeyService apprenticeshipKeyService, IActorProxyFactory proxyFactory, IPaymentLogger logger, IExecutionContext executionContext)
 {
     this.apprenticeshipKeyService = apprenticeshipKeyService;
     this.proxyFactory             = proxyFactory;
     this.logger           = logger;
     this.executionContext = executionContext;
 }
Пример #3
0
 protected EarningEventHandlerBase(IApprenticeshipKeyService apprenticeshipKeyService,
                                   IActorProxyFactory proxyFactory,
                                   IPaymentLogger paymentLogger,
                                   IExecutionContext executionContext)
 {
     this.apprenticeshipKeyService = apprenticeshipKeyService;
     this.proxyFactory             = proxyFactory ?? new ActorProxyFactory();
     this.paymentLogger            = paymentLogger;
     this.executionContext         = (ESFA.DC.Logging.ExecutionContext)executionContext;
 }
 public ApprenticeshipContractType2EarningEventHandler(IApprenticeshipKeyService apprenticeshipKeyService, IActorProxyFactory proxyFactory, IPaymentLogger paymentLogger, IExecutionContext executionContext)
     : base(apprenticeshipKeyService, proxyFactory, paymentLogger, executionContext)
 {
 }
 public PayableFunctionalSkillEarningsEventHandler(IApprenticeshipKeyService apprenticeshipKeyService, IActorProxyFactory proxyFactory, IPaymentLogger paymentLogger, IExecutionContext executionContext)
     : base(apprenticeshipKeyService, proxyFactory, paymentLogger, executionContext)
 {
 }
 public ActorApprenticeshipKeyProvider(IApprenticeshipKeyService apprenticeshipKeyService, IActorIdProvider actorIdProvider)
 {
     this.apprenticeshipKeyService = apprenticeshipKeyService;
     this.actorIdProvider          = actorIdProvider;
 }