public MovementQuantityTests() { movement = new TestableMovement { Status = MovementStatus.Received, Receipt = new TestableMovementReceipt { Date = new DateTime(2015, 9, 1), Decision = Core.MovementReceipt.Decision.Accepted, QuantityReceived = new ShipmentQuantity(5, ShipmentQuantityUnits.Kilograms) } }; shipmentInfo = new TestableShipmentInfo { Quantity = 20, Units = ShipmentQuantityUnits.Kilograms }; movementRepository = A.Fake <IMovementRepository>(); shipmentRepository = A.Fake <IShipmentInfoRepository>(); movementPartialRejectionRepository = A.Fake <IMovementPartialRejectionRepository>(); movementQuantity = new NotificationMovementsQuantity(movementRepository, shipmentRepository, movementPartialRejectionRepository); }
public NumberOfMovementsTests() { shipmentRepository = A.Fake <IShipmentInfoRepository>(); movementRepository = A.Fake <IMovementRepository>(); numberOfMovements = new NumberOfMovements(movementRepository, shipmentRepository); }
public NotificationMovementsQuantity(IMovementRepository movementRepository, IShipmentInfoRepository shipmentRepository, IMovementPartialRejectionRepository movementPartialRejectionRepository) { this.movementRepository = movementRepository; this.shipmentRepository = shipmentRepository; this.movementPartialRejectionRepository = movementPartialRejectionRepository; }
public MovementFactoryTests() { SystemTime.Freeze(Today); shipmentRepository = A.Fake <IShipmentInfoRepository>(); movementRepository = A.Fake <IMovementRepository>(); assessmentRepository = A.Fake <INotificationAssessmentRepository>(); financialGuaranteeRepository = A.Fake <IFinancialGuaranteeRepository>(); consentRepository = A.Fake <INotificationConsentRepository>(); workingDayCalculator = A.Fake <IWorkingDayCalculator>(); notificationApplicationRepository = A.Fake <INotificationApplicationRepository>(); financialGuaranteeRepository = A.Fake <IFinancialGuaranteeRepository>(); movementPartialRejectionRepository = A.Fake <IMovementPartialRejectionRepository>(); dateValidator = A.Fake <IMovementDateValidator>(); var movementNumberGenerator = new MovementNumberGenerator(new NextAvailableMovementNumberGenerator(movementRepository), movementRepository, shipmentRepository); var numberOfMovements = new NumberOfMovements(movementRepository, shipmentRepository); var movementsQuatity = new NotificationMovementsQuantity(movementRepository, shipmentRepository, movementPartialRejectionRepository); var numberOfActiveLoads = new NumberOfActiveLoads(movementRepository, financialGuaranteeRepository); var consentPeriod = new ConsentPeriod(consentRepository, workingDayCalculator, notificationApplicationRepository); factory = new MovementFactory(numberOfMovements, movementsQuatity, assessmentRepository, movementNumberGenerator, numberOfActiveLoads, consentPeriod, dateValidator, financialGuaranteeRepository, A.Fake <IUserContext>()); }
public MovementFactoryTests() { SystemTime.Freeze(Today); shipmentRepository = A.Fake<IShipmentInfoRepository>(); movementRepository = A.Fake<IMovementRepository>(); assessmentRepository = A.Fake<INotificationAssessmentRepository>(); financialGuaranteeRepository = A.Fake<IFinancialGuaranteeRepository>(); consentRepository = A.Fake<INotificationConsentRepository>(); workingDayCalculator = A.Fake<IWorkingDayCalculator>(); notificationApplicationRepository = A.Fake<INotificationApplicationRepository>(); financialGuaranteeRepository = A.Fake<IFinancialGuaranteeRepository>(); dateValidator = A.Fake<IMovementDateValidator>(); var movementNumberGenerator = new MovementNumberGenerator(new NextAvailableMovementNumberGenerator(movementRepository), movementRepository, shipmentRepository); var numberOfMovements = new NumberOfMovements(movementRepository, shipmentRepository); var movementsQuatity = new NotificationMovementsQuantity(movementRepository, shipmentRepository); var numberOfActiveLoads = new NumberOfActiveLoads(movementRepository, financialGuaranteeRepository); var consentPeriod = new ConsentPeriod(consentRepository, workingDayCalculator, notificationApplicationRepository); factory = new MovementFactory(numberOfMovements, movementsQuatity, assessmentRepository, movementNumberGenerator, numberOfActiveLoads, consentPeriod, dateValidator, financialGuaranteeRepository, A.Fake<IUserContext>()); }
public GeneralBlockFactory(INotificationApplicationRepository notificationApplicationRepository, IShipmentInfoRepository shipmentInfoRepository, IFacilityRepository facilityRepository) { this.notificationApplicationRepository = notificationApplicationRepository; this.shipmentInfoRepository = shipmentInfoRepository; this.facilityRepository = facilityRepository; }
public MovementNumberGeneratorTests() { SystemTime.Freeze(new DateTime(2015, 1, 1)); movementRepository = A.Fake<IMovementRepository>(); shipmentRepository = A.Fake<IShipmentInfoRepository>(); generator = new MovementNumberGenerator(new NextAvailableMovementNumberGenerator(movementRepository), movementRepository, shipmentRepository); }
public MovementNumberGeneratorTests() { SystemTime.Freeze(new DateTime(2015, 1, 1)); movementRepository = A.Fake <IMovementRepository>(); shipmentRepository = A.Fake <IShipmentInfoRepository>(); generator = new MovementNumberGenerator(new NextAvailableMovementNumberGenerator(movementRepository), movementRepository, shipmentRepository); }
public MovementNumberGenerator(INextAvailableMovementNumberGenerator nextAvailableMovementNumberGenerator, IMovementRepository movementRepository, IShipmentInfoRepository shipmentRepository) { this.nextAvailableMovementNumberGenerator = nextAvailableMovementNumberGenerator; this.movementRepository = movementRepository; this.shipmentRepository = shipmentRepository; }
public GetRemainingShipmentsHandler(IMovementRepository movementRepository, IShipmentInfoRepository shipmentRepository, IFinancialGuaranteeRepository financialGuaranteeRepository) { this.movementRepository = movementRepository; this.shipmentRepository = shipmentRepository; this.financialGuaranteeRepository = financialGuaranteeRepository; }
public SetIntendedShipmentInfoForNotificationHandler(IwsContext context, IShipmentInfoRepository shipmentInfoRepository, IFacilityRepository facilityRepository, INotificationAssessmentRepository assessmentRepository) { this.context = context; this.shipmentInfoRepository = shipmentInfoRepository; this.facilityRepository = facilityRepository; this.assessmentRepository = assessmentRepository; }
public GetShipmentInfoHandler(INotificationConsentRepository consentRepository, IShipmentInfoRepository shipmentInfoRepository, INotificationApplicationRepository notificationRepository, IMapper mapper) { this.consentRepository = consentRepository; this.shipmentInfoRepository = shipmentInfoRepository; this.notificationRepository = notificationRepository; this.mapper = mapper; }
public MovementBlockFactory(IMovementRepository movementRepository, IMovementDetailsRepository movementDetailsRepository, INotificationApplicationRepository notificationApplicationRepository, IShipmentInfoRepository shipmentInfoRepository) { this.movementRepository = movementRepository; this.notificationApplicationRepository = notificationApplicationRepository; this.shipmentInfoRepository = shipmentInfoRepository; this.movementDetailsRepository = movementDetailsRepository; }
public GetMovementReceiptAndRecoveryDataHandler(IMovementRepository movementRepository, INotificationApplicationRepository notificationApplicationRepository, IMovementRejectionRepository movementRejectionRepository, IShipmentInfoRepository shipmentInfoRepository) { this.movementRepository = movementRepository; this.notificationApplicationRepository = notificationApplicationRepository; this.movementRejectionRepository = movementRejectionRepository; this.shipmentInfoRepository = shipmentInfoRepository; }
public NotificationChargeCalculator(IShipmentInfoRepository shipmentInfoRepository, INotificationApplicationRepository notificationApplicationRepository, IPricingStructureRepository pricingStructureRepository, IFacilityRepository facilityRepository, INumberOfShipmentsHistotyRepository numberOfShipmentsHistotyRepository) { this.shipmentInfoRepository = shipmentInfoRepository; this.notificationApplicationRepository = notificationApplicationRepository; this.pricingStructureRepository = pricingStructureRepository; this.facilityRepository = facilityRepository; this.numberOfShipmentsHistotyRepository = numberOfShipmentsHistotyRepository; }
public NotificationChargeCalculatorTests() { notificationId = new Guid("C4C62654-048C-45A2-BF7F-9837EFCF328F"); shipmentInfoRepository = A.Fake<IShipmentInfoRepository>(); shipmentInfo = A.Fake<ShipmentInfo>(); notificationApplicationRepository = A.Fake<INotificationApplicationRepository>(); pricingStructureRepository = A.Fake<IPricingStructureRepository>(); facilityRepository = A.Fake<IFacilityRepository>(); numberOfShipmentsHistotyRepository = A.Fake<INumberOfShipmentsHistotyRepository>(); notificationApplication = new TestableNotificationApplication(); chargeCalculator = new NotificationChargeCalculator(shipmentInfoRepository, notificationApplicationRepository, pricingStructureRepository, facilityRepository, numberOfShipmentsHistotyRepository); }
public NotificationChargeCalculatorTests() { notificationId = new Guid("C4C62654-048C-45A2-BF7F-9837EFCF328F"); shipmentInfoRepository = A.Fake <IShipmentInfoRepository>(); shipmentInfo = A.Fake <ShipmentInfo>(); notificationApplicationRepository = A.Fake <INotificationApplicationRepository>(); pricingStructureRepository = A.Fake <IPricingStructureRepository>(); facilityRepository = A.Fake <IFacilityRepository>(); numberOfShipmentsHistotyRepository = A.Fake <INumberOfShipmentsHistotyRepository>(); notificationApplication = new TestableNotificationApplication(); chargeCalculator = new NotificationChargeCalculator(shipmentInfoRepository, notificationApplicationRepository, pricingStructureRepository, facilityRepository, numberOfShipmentsHistotyRepository); }
public GetRemainingShipmentsHandlerTests() { SystemTime.Freeze(Today); movementRepository = A.Fake <IMovementRepository>(); shipmentRepository = A.Fake <IShipmentInfoRepository>(); financialGuaranteeRepository = A.Fake <IFinancialGuaranteeRepository>(); var shipment = new TestableShipmentInfo { Id = Guid.NewGuid(), NotificationId = NotificationId, NumberOfShipments = MaxNumberOfShipments, Quantity = 10m, Units = ShipmentQuantityUnits.Tonnes }; A.CallTo(() => shipmentRepository.GetByNotificationId(NotificationId)).Returns(shipment); A.CallTo(() => movementRepository.GetAllMovements(NotificationId)).Returns(GetShipments(TotalMovements, Today)); A.CallTo(() => movementRepository.GetAllActiveMovements(NotificationId)).Returns(GetShipments(ActiveMovements, Today)); handler = new GetRemainingShipmentsHandler(movementRepository, shipmentRepository, financialGuaranteeRepository); }
public MovementQuantityTests() { movement = new TestableMovement { Status = MovementStatus.Received, Receipt = new TestableMovementReceipt { Date = new DateTime(2015, 9, 1), Decision = Core.MovementReceipt.Decision.Accepted, QuantityReceived = new ShipmentQuantity(5, ShipmentQuantityUnits.Kilograms) } }; shipmentInfo = new TestableShipmentInfo { Quantity = 20, Units = ShipmentQuantityUnits.Kilograms }; movementRepository = A.Fake<IMovementRepository>(); shipmentRepository = A.Fake<IShipmentInfoRepository>(); movementQuantity = new NotificationMovementsQuantity(movementRepository, shipmentRepository); }
public PrenotificationContentQuantityUnitRuleTests() { shipmentInfoRepository = A.Fake <IShipmentInfoRepository>(); rule = new PrenotificationQuantityUnitRule(shipmentInfoRepository); notificationId = Guid.NewGuid(); }
public NotificationDocumentGenerator(IShipmentInfoRepository shipmentInfoRepository, NotificationBlocksFactory blocksFactory) { this.shipmentInfoRepository = shipmentInfoRepository; this.blocksFactory = blocksFactory; }
public NotificationMovementsQuantity(IMovementRepository movementRepository, IShipmentInfoRepository shipmentRepository) { this.movementRepository = movementRepository; this.shipmentRepository = shipmentRepository; }
public GetIntendedShipmentInfoForNotificationHandler(IShipmentInfoRepository shipmentInfoRepository) { this.shipmentInfoRepository = shipmentInfoRepository; }
public NumberOfMovements(IMovementRepository movementRepository, IShipmentInfoRepository shipmentRepository) { this.movementRepository = movementRepository; this.shipmentRepository = shipmentRepository; }
public ReceiptRecoveryRecoveryQuantityUnitRuleTests() { shipmentInfoRepository = A.Fake <IShipmentInfoRepository>(); rule = new ReceiptRecoveryRecoveryQuantityUnitRule(shipmentInfoRepository); notificationId = Guid.NewGuid(); }
public SetNewNumberOfShipmentsHandler(IwsContext context, INumberOfShipmentsHistotyRepository shipmentHistotyRepository, IShipmentInfoRepository shipmentInfoRepository) { this.context = context; this.shipmentHistotyRepository = shipmentHistotyRepository; this.shipmentInfoRepository = shipmentInfoRepository; }
public CheckMovementNumberValidHandler(IMovementRepository movementRepository, IShipmentInfoRepository shipmentInfoRepository) { this.movementRepository = movementRepository; this.shipmentInfoRepository = shipmentInfoRepository; }
public PrenotificationQuantityUnitRule(IShipmentInfoRepository shipmentInfoRepository) { this.shipmentInfoRepository = shipmentInfoRepository; }
public GetShipmentUnitsHandler(IShipmentInfoRepository repository) { this.repository = repository; }
public ReceiptRecoveryRecoveryQuantityUnitRule(IShipmentInfoRepository repo) { this.repo = repo; }