public IncidentService(IIncidentsRepository incidentsRepository) { if (incidentsRepository == null) { throw new ArgumentNullException("incidentsRepository"); } _incidentsRepository = incidentsRepository; }
public IncidentsService(IIncidentsRepository incidentsRepository, IUnitOfWork unitOfWork) { _incidentsRepository = incidentsRepository; _unitOfWork = unitOfWork; }
public IncidentController(IIncidentsRepository incidentsRepository, IAccountsRepository accountsRepository, IContactsRepository contactsRepository) { this.incidentsRepository = incidentsRepository; this.accountsRepository = accountsRepository; this.contactsRepository = contactsRepository; }