public CompleteNotification(INotificationAssessmentRepository notificationAssessmentRepository, IFacilityRepository facilityRepository, INotificationTransactionCalculator notificationTransactionCalculator) { this.notificationAssessmentRepository = notificationAssessmentRepository; this.facilityRepository = facilityRepository; this.notificationTransactionCalculator = notificationTransactionCalculator; }
public Transaction(INotificationAssessmentRepository notificationAssessmentRepository, INotificationTransactionRepository transactionRepository, INotificationTransactionCalculator transactionCalculator) { this.notificationAssessmentRepository = notificationAssessmentRepository; this.transactionRepository = transactionRepository; this.transactionCalculator = transactionCalculator; }
public GetAccountManagementDataHandler(INotificationTransactionRepository repository, IMap <IList <NotificationTransaction>, AccountManagementData> accountManagementMap, INotificationChargeCalculator chargeCalculator, INotificationTransactionCalculator transactionCalculator) { this.repository = repository; this.accountManagementMap = accountManagementMap; this.chargeCalculator = chargeCalculator; this.transactionCalculator = transactionCalculator; }
public NotificationAssessmentDatesSummaryRepository(DecisionRequiredBy decisionRequiredBy, INotificationAssessmentRepository notificationAssessmentRepository, INotificationApplicationRepository notificationApplicationRepository, INotificationTransactionCalculator transactionCalculator, INotificationApplicationAuthorization authorization) { this.decisionRequiredBy = decisionRequiredBy; this.notificationApplicationRepository = notificationApplicationRepository; this.notificationAssessmentRepository = notificationAssessmentRepository; this.transactionCalculator = transactionCalculator; this.authorization = authorization; }
public GetWhatToDoNextPaymentDataForNotificationHandler(IwsContext context, IMapWithParameter <NotificationApplication, UnitedKingdomCompetentAuthority, WhatToDoNextPaymentData> map, INotificationChargeCalculator chargeCalculator, INotificationTransactionCalculator transactionCalculator, INotificationAssessmentRepository assessmentRepository) { this.context = context; this.map = map; this.chargeCalculator = chargeCalculator; this.transactionCalculator = transactionCalculator; this.assessmentRepository = assessmentRepository; }
public CompleteNotificationTests() { notificationAssessmentRepository = A.Fake <INotificationAssessmentRepository>(); facilityRepository = A.Fake <IFacilityRepository>(); notificationTransactionCalculator = A.Fake <INotificationTransactionCalculator>(); completeNotification = new CompleteNotification(notificationAssessmentRepository, facilityRepository, notificationTransactionCalculator); notificationAssessment = new NotificationAssessment(notificationId); A.CallTo(() => notificationAssessmentRepository.GetByNotificationId(notificationId)) .Returns(notificationAssessment); }
public CompleteNotificationTests() { notificationAssessmentRepository = A.Fake<INotificationAssessmentRepository>(); facilityRepository = A.Fake<IFacilityRepository>(); notificationTransactionCalculator = A.Fake<INotificationTransactionCalculator>(); completeNotification = new CompleteNotification(notificationAssessmentRepository, facilityRepository, notificationTransactionCalculator); notificationAssessment = new NotificationAssessment(notificationId); A.CallTo(() => notificationAssessmentRepository.GetByNotificationId(notificationId)) .Returns(notificationAssessment); }
public TransactionTests() { notificationAssessmentRepository = A.Fake <INotificationAssessmentRepository>(); notificationTransactionRepository = A.Fake <INotificationTransactionRepository>(); notificationTransactionCalculator = A.Fake <INotificationTransactionCalculator>(); assessment = new TestableNotificationAssessment(); assessment.NotificationApplicationId = notificationId; assessment.Dates = new NotificationDates(); A.CallTo(() => notificationAssessmentRepository.GetByNotificationId(notificationId)) .Returns(assessment); A.CallTo(() => notificationTransactionCalculator.Balance(notificationId)) .Returns(1000); transaction = new Transaction( notificationAssessmentRepository, notificationTransactionRepository, notificationTransactionCalculator); }
public GetRefundLimitHandler(INotificationTransactionCalculator transactionCalculator) { this.transactionCalculator = transactionCalculator; }
public GetChargeDueHandler(INotificationTransactionCalculator transactionCalculator) { this.transactionCalculator = transactionCalculator; }