public HomeController(ILogger <HomeController> logger, ILoginValidatorService loginValidatorService, ICurrentSession session, IUserFinderService userFinderService) { _logger = logger; _loginValidatorService = loginValidatorService; _session = session; _userFinderService = userFinderService; }
public VoteToDbService(bool logged, LoginCredentials loginCredentials, ILoginValidatorService loginValidatorService, ElectionDbContext context, WebserviceRawCommunication webservice) { _logged = logged; _loginCredentials = loginCredentials; _loginValidatorService = loginValidatorService; _context = context; _webservice = webservice; }
public User(LoginCredentials loginCredentials, ElectionDbContext context, WebserviceRawCommunication webservice) { _loginCredentials = loginCredentials; FirstName = loginCredentials.FirstName; LastName = loginCredentials.LastName; Pesel = loginCredentials.Pesel; _context = context; _webservice = webservice; _checkUserAlreadyVotedService = new CheckUserAlreadyVotedFromDbService(loginCredentials, context); _checkUserIsDisallowdToVoteService = new CheckUserIsDisallowedToVoteService(webservice); _loginValidatorService = new LoginValidatorService(loginCredentials.FirstName, loginCredentials.LastName, Pesel, _checkUserIsDisallowdToVoteService, _checkUserAlreadyVotedService); }