public SpendingsController(
     ISpendingService spendingService,
     ICNWService cnwService,
     IFinanceService financeService,
     IIncomeService incomeService,
     IBaseService baseService)
 {
     this.spendingService = spendingService ?? throw new ArgumentNullException(nameof(spendingService));
     this.cnwService      = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
     this.financeService  = financeService ?? throw new ArgumentNullException(nameof(financeService));
     this.incomeService   = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     this.baseService     = baseService ?? throw new ArgumentNullException(nameof(baseService));
 }
 public FinanceService(
     IFinanceRepository financeRepository,
     ISpendingService spendingService,
     IIncomeService incomeService,
     IRemindersService remindersService,
     IBaseService baseService,
     ICNWService cnwService)
 {
     this.financeRepository = financeRepository ?? throw new ArgumentNullException(nameof(financeRepository));
     this.spendingService   = spendingService ?? throw new ArgumentNullException(nameof(spendingService));
     this.incomeService     = incomeService ?? throw new ArgumentNullException(nameof(incomeService));
     this.remindersService  = remindersService ?? throw new ArgumentNullException(nameof(remindersService));
     this.baseService       = baseService ?? throw new ArgumentNullException(nameof(baseService));
     this.cnwService        = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
 }
Beispiel #3
0
 public CNWController(ICNWService cnwService)
 {
     this.cnwService = cnwService ?? throw new ArgumentNullException(nameof(cnwService));
 }