public BonAPayerService(IBonAPayerRepository repository, IReglementRepository reglementRepository, IFacturesRepository facturesRepository, IMapper mapper) : base(repository) { this.reglementRepository = reglementRepository ?? throw new ArgumentNullException(nameof(reglementRepository)); this.facturesRepository = facturesRepository ?? throw new ArgumentNullException(nameof(facturesRepository)); this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public FactureService(IFacturesRepository repository, IMapper mapper) : base(repository) { this.factureRepository = repository ?? throw new NullReferenceException(nameof(repository)); this.mapper = mapper ?? throw new NullReferenceException(nameof(mapper)); }