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 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 NumberOfMovementsTests() { shipmentRepository = A.Fake <IShipmentInfoRepository>(); movementRepository = A.Fake <IMovementRepository>(); numberOfMovements = new NumberOfMovements(movementRepository, shipmentRepository); }
public TotalShipmentsReached(NumberOfMovements numberOfMovements) { this.numberOfMovements = numberOfMovements; }