public CompleteDraftImportNotificationHandler(IValidator <ImportNotification> importNotificationValidator,
                                               IDraftImportNotificationRepository draftImportNotificationRepository,
                                               IMapper mapper,
                                               IImportNotificationRepository importNotificationRepository,
                                               IImportNotificationAssessmentRepository importNotificationAssessmentRepository,
                                               IExporterRepository exporterRepository,
                                               IFacilityRepository facilityRepository,
                                               IImporterRepository importerRepository,
                                               IProducerRepository producerRepository,
                                               IShipmentRepository shipmentRepository,
                                               ITransportRouteRepository transportRouteRepository,
                                               IWasteOperationRepository wasteOperationRepository,
                                               IWasteTypeRepository wasteTypeRepository,
                                               ImportNotificationContext context)
 {
     this.importNotificationValidator       = importNotificationValidator;
     this.draftImportNotificationRepository = draftImportNotificationRepository;
     this.mapper = mapper;
     this.importNotificationRepository           = importNotificationRepository;
     this.importNotificationAssessmentRepository = importNotificationAssessmentRepository;
     this.exporterRepository       = exporterRepository;
     this.facilityRepository       = facilityRepository;
     this.importerRepository       = importerRepository;
     this.producerRepository       = producerRepository;
     this.shipmentRepository       = shipmentRepository;
     this.transportRouteRepository = transportRouteRepository;
     this.wasteOperationRepository = wasteOperationRepository;
     this.wasteTypeRepository      = wasteTypeRepository;
     this.context = context;
 }
示例#2
0
 public GetWasteOperationDataHandler(IImportNotificationRepository notificationRepository,
                                     IWasteOperationRepository wasteOperationRepository, IMapper mapper)
 {
     this.notificationRepository   = notificationRepository;
     this.wasteOperationRepository = wasteOperationRepository;
     this.mapper = mapper;
 }
 public DecisionRequiredBy(IImportNotificationRepository notificationRepository, 
     IFacilityRepository facilityRepository, 
     IDecisionRequiredByCalculator decisionRequiredByCalculator)
 {
     this.notificationRepository = notificationRepository;
     this.facilityRepository = facilityRepository;
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
 }
示例#4
0
 public DecisionRequiredBy(IImportNotificationRepository notificationRepository,
                           IFacilityRepository facilityRepository,
                           IDecisionRequiredByCalculator decisionRequiredByCalculator)
 {
     this.notificationRepository       = notificationRepository;
     this.facilityRepository           = facilityRepository;
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
 }
 public DeleteImportNotificationHandlerTests()
 {
     this.repo                 = A.Fake <IImportNotificationRepository>();
     this.message              = A.Fake <DeleteImportNotification>();
     this.handler              = new DeleteImportNotificationHandler(this.repo);
     this.notificationHandler  = new GetImportNotificationNumberByIdHandler(this.repo);
     this.importNotificationId = A.Fake <GetImportNotificationNumberById>();
 }
示例#6
0
        public PreconsentedValidator(IImportNotificationRepository importNotificationRepository)
        {
            this.importNotificationRepository = importNotificationRepository;

            RuleFor(x => x.AllFacilitiesPreconsented)
            .MustAsync(BeEnteredForRecoveryNotification)
            .WithLocalizedMessage(() => PreconsentedValidatorResources.PreconsentMustBeEntered);
        }
 public GetImportMovementsSummaryTableHandler(IImportNotificationRepository notificationRepository,
                                              IImportMovementTableDataRepository tableDataRepository,
                                              IMap <IEnumerable <MovementTableData>, IEnumerable <Core.ImportNotificationMovements.MovementTableData> > mapper)
 {
     this.notificationRepository = notificationRepository;
     this.tableDataRepository    = tableDataRepository;
     this.mapper = mapper;
 }
示例#8
0
 public GetNotificationInfoHandler(INotificationApplicationRepository notificationApplicationRepository,
                                   INotificationAssessmentRepository notificationAssessmentRepository,
                                   IImportNotificationRepository importNotificationRepository,
                                   IImportNotificationAssessmentRepository importNotificationAssessmentRepository)
 {
     this.notificationApplicationRepository      = notificationApplicationRepository;
     this.notificationAssessmentRepository       = notificationAssessmentRepository;
     this.importNotificationRepository           = importNotificationRepository;
     this.importNotificationAssessmentRepository = importNotificationAssessmentRepository;
 }
 public ImportNotificationChargeCalculator(IImportNotificationRepository notificationRepository,
                                           IShipmentRepository shipmentRepository,
                                           IPricingStructureRepository pricingStructureRepository,
                                           IInterimStatusRepository interimStatusRepository,
                                           INumberOfShipmentsHistotyRepository numberOfShipmentsHistotyRepository)
 {
     this.notificationRepository             = notificationRepository;
     this.shipmentRepository                 = shipmentRepository;
     this.pricingStructureRepository         = pricingStructureRepository;
     this.interimStatusRepository            = interimStatusRepository;
     this.numberOfShipmentsHistotyRepository = numberOfShipmentsHistotyRepository;
 }
 public ImportNotificationChargeCalculator(IImportNotificationRepository notificationRepository, 
     IShipmentRepository shipmentRepository,
     IPricingStructureRepository pricingStructureRepository,
     IInterimStatusRepository interimStatusRepository,
     INumberOfShipmentsHistotyRepository numberOfShipmentsHistotyRepository)
 {
     this.notificationRepository = notificationRepository;
     this.shipmentRepository = shipmentRepository;
     this.pricingStructureRepository = pricingStructureRepository;
     this.interimStatusRepository = interimStatusRepository;
     this.numberOfShipmentsHistotyRepository = numberOfShipmentsHistotyRepository;
 }
 public CreateImportNotificationHandler(IImportNotificationRepository importNotificationRepository,
                                        ImportNotificationContext context,
                                        IUserContext userContext,
                                        IInternalUserRepository internalUserRepository,
                                        IImportNotificationAssessmentRepository assessmentRepository,
                                        IInterimStatusRepository interimStatusRepository)
 {
     this.internalUserRepository       = internalUserRepository;
     this.assessmentRepository         = assessmentRepository;
     this.interimStatusRepository      = interimStatusRepository;
     this.importNotificationRepository = importNotificationRepository;
     this.context     = context;
     this.userContext = userContext;
 }
示例#12
0
 public GetKeyDatesHandler(IImportNotificationAssessmentRepository notificationAssessmentRepository,
                           IInterimStatusRepository interimStatusRepository,
                           DecisionRequiredBy decisionRequiredBy,
                           IImportNotificationTransactionCalculator transactionCalculator,
                           IImportNotificationAssessmentDecisionRepository notificationAssessmentDecisionRepository,
                           IImportNotificationRepository notificationRepository,
                           IConsultationRepository consultationRepository)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.interimStatusRepository          = interimStatusRepository;
     this.decisionRequiredBy    = decisionRequiredBy;
     this.transactionCalculator = transactionCalculator;
     this.notificationAssessmentDecisionRepository = notificationAssessmentDecisionRepository;
     this.notificationRepository = notificationRepository;
     this.consultationRepository = consultationRepository;
 }
 public GetSummaryHandler(IImportNotificationRepository importNotificationRepository,
                          Domain.ICountryRepository countryRepository,
                          IDraftImportNotificationRepository draftRepository,
                          IImportNotificationAssessmentRepository assessmentRepository,
                          TransportRouteSummary transportRouteSummary,
                          WasteTypeSummary wasteTypeSummary,
                          IImportNotificationOverviewRepository summaryRepository,
                          IMapper mapper)
 {
     this.importNotificationRepository = importNotificationRepository;
     this.countryRepository            = countryRepository;
     this.draftRepository       = draftRepository;
     this.transportRouteSummary = transportRouteSummary;
     this.wasteTypeSummary      = wasteTypeSummary;
     this.assessmentRepository  = assessmentRepository;
     this.summaryRepository     = summaryRepository;
     this.mapper = mapper;
 }
示例#14
0
        public DecisionRequiredByTests()
        {
            notificationId     = new Guid();
            competentAuthority = UKCompetentAuthority.England;

            decisionRequiredByCalculator = A.Fake <IDecisionRequiredByCalculator>();
            facilityRepository           = A.Fake <IFacilityRepository>();
            importNotificationRepository = A.Fake <IImportNotificationRepository>();
            assessment = new ImportNotificationAssessment(notificationId);

            decisionRequiredBy = new DecisionRequiredBy(importNotificationRepository, facilityRepository, decisionRequiredByCalculator);

            decisionRequiredByDateWhenPopulatedInDB    = new DateTime(2019, 1, 1);
            decisionRequiredByDateWhenNotPopulatedInDB = null;
            acknowledgedDateWhenHasValue   = new DateTime(2019, 2, 2);
            acknowledgedDateWhenHasNoValue = null;
            decisionRequiredByDateWhenAcknowledgeDateHasNoValue = null;
            decisionRequiredByDateWhenCalculated = new DateTime(2019, 3, 3);
        }
 public GetNotificationDetailsHandler(IImportNotificationRepository notificationRepository)
 {
     this.notificationRepository = notificationRepository;
 }
 public GetImportNotificationIdByNumberHandler(IImportNotificationRepository repository)
 {
     this.repository = repository;
 }
示例#17
0
 public DeleteImportNotificationHandler(IImportNotificationRepository repository)
 {
     this.repository = repository;
 }
 public IsAddedCancellableImportMovementValidHandler(IImportMovementRepository repository, IImportNotificationRepository notificationRepository)
 {
     this.repository             = repository;
     this.notificationRepository = notificationRepository;
 }
 public CheckImportNumberUniqueHandler(IImportNotificationRepository importNotificationRepository)
 {
     this.importNotificationRepository = importNotificationRepository;
 }