public CompleteNotification(INotificationAssessmentRepository notificationAssessmentRepository, IFacilityRepository facilityRepository,
                             INotificationTransactionCalculator notificationTransactionCalculator)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.facilityRepository = facilityRepository;
     this.notificationTransactionCalculator = notificationTransactionCalculator;
 }
 public CompleteNotification(INotificationAssessmentRepository notificationAssessmentRepository, IFacilityRepository facilityRepository,
     INotificationTransactionCalculator notificationTransactionCalculator)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.facilityRepository = facilityRepository;
     this.notificationTransactionCalculator = notificationTransactionCalculator;
 }
Exemple #3
0
 public Transaction(INotificationAssessmentRepository notificationAssessmentRepository,
                    INotificationTransactionRepository transactionRepository,
                    INotificationTransactionCalculator transactionCalculator)
 {
     this.notificationAssessmentRepository = notificationAssessmentRepository;
     this.transactionRepository            = transactionRepository;
     this.transactionCalculator            = transactionCalculator;
 }
 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;
 }
Exemple #6
0
 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 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;
 }
Exemple #8
0
 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);
        }
Exemple #11
0
        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;
 }
Exemple #13
0
 public GetChargeDueHandler(INotificationTransactionCalculator transactionCalculator)
 {
     this.transactionCalculator = transactionCalculator;
 }