예제 #1
0
        public IncidentService(IIncidentsRepository incidentsRepository)
        {
            if (incidentsRepository == null)
            {
                throw new ArgumentNullException("incidentsRepository");
            }

            _incidentsRepository = incidentsRepository;
        }
예제 #2
0
 public IncidentsService(IIncidentsRepository incidentsRepository, IUnitOfWork unitOfWork)
 {
     _incidentsRepository = incidentsRepository;
     _unitOfWork          = unitOfWork;
 }
예제 #3
0
 public IncidentController(IIncidentsRepository incidentsRepository, IAccountsRepository accountsRepository, IContactsRepository contactsRepository)
 {
     this.incidentsRepository = incidentsRepository;
     this.accountsRepository  = accountsRepository;
     this.contactsRepository  = contactsRepository;
 }