예제 #1
0
        public BeneficiaryService(IBeneficiaryForPaymentRepository beneficiaryRepository)
        {
            if (beneficiaryRepository == null)
            {
                throw new ArgumentNullException("BeneficiaryService:beneficiaryRepository");
            }

            _beneficiaryRepository = beneficiaryRepository;
        }
예제 #2
0
 public PaymentService(IPaymentRepository paymentRepository, IBeneficiaryForPaymentRepository beneficiaryRepository, IProfileRepository profileRepository)
 {
     if (paymentRepository == null)
     {
         throw new ArgumentNullException("PaymentService:paymentRepository");
     }
     _paymentRepository = paymentRepository;
     if (beneficiaryRepository == null)
     {
         throw new ArgumentNullException("PaymentService:beneficiaryRepository");
     }
     _beneficiaryRepository = beneficiaryRepository;
     if (profileRepository == null)
     {
         throw new ArgumentNullException("PaymentService:profileRepository");
     }
     _profileRepository = profileRepository;
 }