コード例 #1
0
 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;
 }
コード例 #3
0
 public DecisionRequiredBy(IImportNotificationRepository notificationRepository, 
     IFacilityRepository facilityRepository, 
     IDecisionRequiredByCalculator decisionRequiredByCalculator)
 {
     this.notificationRepository = notificationRepository;
     this.facilityRepository = facilityRepository;
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
 }
コード例 #4
0
ファイル: DecisionRequiredBy.cs プロジェクト: DEFRA/prsd-iws
 public DecisionRequiredBy(IImportNotificationRepository notificationRepository,
                           IFacilityRepository facilityRepository,
                           IDecisionRequiredByCalculator decisionRequiredByCalculator)
 {
     this.notificationRepository       = notificationRepository;
     this.facilityRepository           = facilityRepository;
     this.decisionRequiredByCalculator = decisionRequiredByCalculator;
 }
コード例 #5
0
 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);
        }
コード例 #7
0
 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;
 }
コード例 #9
0
 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;
 }
コード例 #10
0
 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;
 }
コード例 #11
0
 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;
 }
コード例 #13
0
 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);
        }
コード例 #15
0
 public GetNotificationDetailsHandler(IImportNotificationRepository notificationRepository)
 {
     this.notificationRepository = notificationRepository;
 }
コード例 #16
0
 public GetImportNotificationIdByNumberHandler(IImportNotificationRepository repository)
 {
     this.repository = repository;
 }
コード例 #17
0
 public DeleteImportNotificationHandler(IImportNotificationRepository repository)
 {
     this.repository = repository;
 }
コード例 #18
0
 public IsAddedCancellableImportMovementValidHandler(IImportMovementRepository repository, IImportNotificationRepository notificationRepository)
 {
     this.repository             = repository;
     this.notificationRepository = notificationRepository;
 }
コード例 #19
0
 public CheckImportNumberUniqueHandler(IImportNotificationRepository importNotificationRepository)
 {
     this.importNotificationRepository = importNotificationRepository;
 }