Пример #1
0
 public VoteManager(ICandidateRepository candidateRepository, IVoterRepository voterRepository, ICategoryRepository categoryRepository, IVoteRepository repository) : base(repository)
 {
     CandidateRepository = candidateRepository;
     CategoryRepository  = categoryRepository;
     VoterRepository     = voterRepository;
     VoteRepository      = repository;
 }
 public RegistrationUnitOfWork(RegistrationContext context,
                               ICandidateRepository candidateRepository,
                               IVoterRepository voterRepository,
                               IRegistrationRepository registrationRepository,
                               IMakeElectionRepository makeElectionRepository,
                               IVoterCheckRepository voterCheckRepository,
                               IApiEntityRepository apiEntityRepository)
     : base(context)
 {
     CandidateRepository    = candidateRepository;
     VoterRepository        = voterRepository;
     RegistrationRepository = registrationRepository;
     MakeElectionRepository = makeElectionRepository;
     VoterCheckRepository   = voterCheckRepository;
     ApiEntityRepository    = apiEntityRepository;
 }
 public VoterService(IVoterRepository voterRepository)
 {
     _voterRepository = voterRepository;
 }
Пример #4
0
 public VoterBusiness(IVoterRepository voterRepository)
 {
     this.voterRepository = voterRepository;
 }
Пример #5
0
 public GetVoterByIdQueryHandler(IVoterRepository voterRepository, IMapper mapper)
 {
     _voterRepository = voterRepository;
     _mapper          = mapper;
 }
Пример #6
0
 public VoterManager(IVoterRepository repository) : base(repository)
 {
     VoterRepository = repository;
 }
 public DataManager(IDistrictRepository districtRepository,
                    ILocalityRepository localityRepository,
                    IStreetRepository streetRepository,
                    IHouseRepository houseRepository,
                    IMunicipalityRepository municipalityRepository,
                    IPersonRepository personRepository,
                    INationalityRepository nationalityRepository,
                    IEducationRepository educationRepository,
                    IOrganizationRepository organizationRepository,
                    IMunicipalityHouseRelationRepository municipalityHouseRelationRepository,
                    IRegistrationRepository registrationRepository,
                    IPartyRepository partyRepository,
                    IPrecinctRepository precinctRepository,
                    IUserRepository userRepository,
                    IWorkerRepository workerRepository,
                    IVoterPartyRelationRepository voterPartyRelationRepository,
                    IVoterRepository voterRepository,
                    IUserLogRepository userLogRepository,
                    IRelationshipRepository relationshipRepository,
                    IPersonRelationRepository personRelationRepository,
                    ICandidateRepository candidateRepository,
                    IAgitatorRepository agitatorRepository,
                    IWorkerHouseRelationRepository workerHouseRelationRepository,
                    IAgitatorHouseRelationRepository agitatorHouseRelationRepository,
                    IAgitatorPrecinctRelationRepository agitatorPrecinctRelationRepository,
                    ICandidatePrecinctRelationRepository candidatePrecinctRelationRepository,
                    ICandidateMunicipalityRelationRepository candidateMunicipalityRelationRepository,
                    ITempPersonRepository tempPersonRepository,
                    IGEORepository geoRepository,
                    IPartyMemberRepository partyMemberRepository,
                    IPartySupporterRepository partySupporterRepository)
 {
     this.districtRepository     = districtRepository;
     this.municipalityRepository = municipalityRepository;
     this.personRepository       = personRepository;
     this.localityRepository     = localityRepository;
     this.nationalityRepository  = nationalityRepository;
     this.streetRepository       = streetRepository;
     this.houseRepository        = houseRepository;
     this.educationRepository    = educationRepository;
     this.organizationRepository = organizationRepository;
     this.municipalityHouseRelationRepository = municipalityHouseRelationRepository;
     this.registrationRepository                  = registrationRepository;
     this.partyRepository                         = partyRepository;
     this.precinctRepository                      = precinctRepository;
     this.userRepository                          = userRepository;
     this.workerRepository                        = workerRepository;
     this.voterPartyRelationRepository            = voterPartyRelationRepository;
     this.voterRepository                         = voterRepository;
     this.userLogRepository                       = userLogRepository;
     this.relationshipRepository                  = relationshipRepository;
     this.personRelationRepository                = personRelationRepository;
     this.candidateRepository                     = candidateRepository;
     this.agitatorRepository                      = agitatorRepository;
     this.workerHouseRelationRepository           = workerHouseRelationRepository;
     this.agitatorHouseRelationRepository         = agitatorHouseRelationRepository;
     this.agitatorPrecinctRelationRepository      = agitatorPrecinctRelationRepository;
     this.candidatePrecinctRelationRepository     = candidatePrecinctRelationRepository;
     this.candidateMunicipalityRelationRepository = candidateMunicipalityRelationRepository;
     this.tempPersonRepository                    = tempPersonRepository;
     this.geoRepository            = geoRepository;
     this.partyMemberRepository    = partyMemberRepository;
     this.partySupporterRepository = partySupporterRepository;
 }
Пример #8
0
 public VoteService(IVoteRepository voteRepository, ICandidateXCategoryRepository candidateXCategoryRepository, IVoterRepository voterRepository) : base(voteRepository)
 {
     this._voteRepository  = voteRepository;
     this._voterRepository = voterRepository;
     this._candidateXCategoryRepository = candidateXCategoryRepository;
 }
Пример #9
0
 public CreateVoterCommandHandler(IVoterRepository voterRepository, IMapper mapper)
 {
     _voterRepository = voterRepository;
     _mapper          = mapper;
 }
Пример #10
0
 public VoterService()
 {
     _voterRepository = RepositoryFactory.Get <IVoterRepository>();
 }
Пример #11
0
 public VoterExistsQueryHandler(IVoterRepository voterRepository)
 {
     _voterRepository = voterRepository;
 }
Пример #12
0
 //Added Dependency Injection for repository using constructor.
 public VoterController(IVoterRepository voterRepository)
 {
     _voterRepository = voterRepository;
 }
Пример #13
0
 public DataManager(IDistrictRepository districtRepository,
     ILocalityRepository localityRepository,
     IStreetRepository streetRepository,
     IHouseRepository houseRepository,
     IMunicipalityRepository municipalityRepository,
     IPersonRepository personRepository,
     INationalityRepository nationalityRepository,
     IEducationRepository educationRepository,
     IOrganizationRepository organizationRepository,
     IMunicipalityHouseRelationRepository municipalityHouseRelationRepository,
     IRegistrationRepository registrationRepository,
     IPartyRepository partyRepository,
     IPrecinctRepository precinctRepository,
     IUserRepository userRepository,
     IWorkerRepository workerRepository,
     IVoterPartyRelationRepository voterPartyRelationRepository,
     IVoterRepository voterRepository,
     IUserLogRepository userLogRepository,
     IRelationshipRepository relationshipRepository,
     IPersonRelationRepository personRelationRepository,
     ICandidateRepository candidateRepository,
     IAgitatorRepository agitatorRepository,
     IWorkerHouseRelationRepository workerHouseRelationRepository,
     IAgitatorHouseRelationRepository agitatorHouseRelationRepository,
     IAgitatorPrecinctRelationRepository agitatorPrecinctRelationRepository,
     ICandidatePrecinctRelationRepository candidatePrecinctRelationRepository,
     ICandidateMunicipalityRelationRepository candidateMunicipalityRelationRepository,
     ITempPersonRepository tempPersonRepository,
     IGEORepository geoRepository,
     IPartyMemberRepository partyMemberRepository,
     IPartySupporterRepository partySupporterRepository)
 {
     this.districtRepository = districtRepository;
     this.municipalityRepository = municipalityRepository;
     this.personRepository = personRepository;
     this.localityRepository = localityRepository;
     this.nationalityRepository = nationalityRepository;
     this.streetRepository = streetRepository;
     this.houseRepository = houseRepository;
     this.educationRepository = educationRepository;
     this.organizationRepository = organizationRepository;
     this.municipalityHouseRelationRepository = municipalityHouseRelationRepository;
     this.registrationRepository = registrationRepository;
     this.partyRepository = partyRepository;
     this.precinctRepository = precinctRepository;
     this.userRepository = userRepository;
     this.workerRepository = workerRepository;
     this.voterPartyRelationRepository = voterPartyRelationRepository;
     this.voterRepository = voterRepository;
     this.userLogRepository = userLogRepository;
     this.relationshipRepository = relationshipRepository;
     this.personRelationRepository = personRelationRepository;
     this.candidateRepository = candidateRepository;
     this.agitatorRepository = agitatorRepository;
     this.workerHouseRelationRepository = workerHouseRelationRepository;
     this.agitatorHouseRelationRepository = agitatorHouseRelationRepository;
     this.agitatorPrecinctRelationRepository = agitatorPrecinctRelationRepository;
     this.candidatePrecinctRelationRepository = candidatePrecinctRelationRepository;
     this.candidateMunicipalityRelationRepository = candidateMunicipalityRelationRepository;
     this.tempPersonRepository = tempPersonRepository;
     this.geoRepository = geoRepository;
     this.partyMemberRepository = partyMemberRepository;
     this.partySupporterRepository = partySupporterRepository;
 }
Пример #14
0
 public DeleteVoterCommandHandler(IVoterRepository voterRepository)
 {
     _voterRepository = voterRepository;
 }
Пример #15
0
 public GetAllVotersQueryHandler(IMapper mapper, IVoterRepository voterRepository)
 {
     _mapper          = mapper;
     _voterRepository = voterRepository;
 }