public bool IsPeselDisallowedToVote(string pesel) { string json = new WebserviceRawCommunication().GetPeopleDisallowedToVote(); ICollection <Person> disallowedPersonList = new WebserviceDataParser().GetDisallowedPeopleList(json).PersonList; return(disallowedPersonList.Any(p => p.Pesel == pesel)); }
public VoteToDbService(bool logged, LoginCredentials loginCredentials, ILoginValidatorService loginValidatorService, ElectionDbContext context, WebserviceRawCommunication webservice) { _logged = logged; _loginCredentials = loginCredentials; _loginValidatorService = loginValidatorService; _context = context; _webservice = webservice; }
public GetJsonCandidateListFromWsService(WebserviceRawCommunication webservice) { _webservice = webservice; }
public CheckUserIsDisallowedToVoteService(WebserviceRawCommunication webservice) { _webservice = webservice; }