Esempio n. 1
0
 public ElectionService(IElectionRepository electionRepository, IElectionCandidateRepository electionCandidateRepository,
                        IElectionCitizenRepository electionCitizenRepository, IElectionPoliticPartyRepository electionPoliticPartyRepository,
                        IElectionPositionRepository electionPositionRepository, IResultRepository resultRepository)
 {
     _electionRepository             = electionRepository;
     _electionCandidateRepository    = electionCandidateRepository;
     _electionCitizenRepository      = electionCitizenRepository;
     _electionPoliticPartyRepository = electionPoliticPartyRepository;
     _electionPositionRepository     = electionPositionRepository;
     _resultRepository = resultRepository;
 }
Esempio n. 2
0
 public ElectionsController(IElectionService electionService, IPositionService positionService, ICandidateService candidateService,
                            IPoliticPartyService politicPartyService, ICitizenService citizenService, IMapper mapper,
                            IResultRepository resultRepository, IElectionCitizenRepository electionCitizenRepository,
                            Sistema_de_votacion.Mail.IEmailSender emailSender)
 {
     _electionService     = electionService;
     _positionService     = positionService;
     _candidateService    = candidateService;
     _politicPartyService = politicPartyService;
     _citizenService      = citizenService;
     _mapper = mapper;
     this._resultRepository          = resultRepository;
     this._electionCitizenRepository = electionCitizenRepository;
     this._emailSender = emailSender;
 }