public DebtController( IDebtService debtService, ICustomerService customerService, IAgreementService agreementService, IDebtStatusService debtStatus, IDebtPaidService debtPaid, IDebtStoreService debtStore, IDebtClaimService debtClaim, IMapper mapper) { this.debtService = debtService ?? throw new ArgumentNullException(nameof(debtService)); this.customerService = customerService ?? throw new ArgumentNullException(nameof(customerService)); this.agreementService = agreementService ?? throw new ArgumentNullException(nameof(agreementService)); this.debtStatus = debtStatus ?? throw new ArgumentNullException(nameof(debtStatus)); this.debtPaid = debtPaid ?? throw new ArgumentNullException(nameof(debtPaid)); this.debtStore = debtStore ?? throw new ArgumentNullException(nameof(debtStore)); this.debtClaim = debtClaim ?? throw new ArgumentNullException(nameof(debtClaim)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public DebtStoreController(IDebtStoreService debtStoreService, IMapper mapper) { this.debtStoreService = debtStoreService ?? throw new ArgumentNullException(nameof(debtStoreService)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }