public GetResultsHandler(ITestRunsRepository testRunsRepository, IEventsRepository eventsRepository, IEntrantsRepository entrantsRepository) { this.testRunsRepository = testRunsRepository; this.eventsRepository = eventsRepository; this.entrantsRepository = entrantsRepository; totalTimeCalculator = new AutoTestTotalTimeCalculator(); }
public EntrantsController() { _entrantsRepository = new EFEntrantsRepository(); _listViewEntrants = new ListViewEntrants() { Entrants = _entrantsRepository.Entrants, Specialities = _entrantsRepository.Specialities }; }
public IEnumerable <ListViewEntrant> getFilteredEntrants(string[] nodesIds, IEntrantsRepository entrantsRepository) { var listViewEntrants = new List <ListViewEntrant>(); if (nodesIds != null) { foreach (var nodeId in nodesIds) { IEnumerable <Entrant> entrants; if (nodeId.Contains("s")) { entrants = entrantsRepository.getEntrantsFromDatabaseBySpeciality(nodeId); foreach (var entrant in entrants) { listViewEntrants.Add(new ListViewEntrant(entrant)); } } } } return(listViewEntrants); }
public GetEntrantsHandler(IEntrantsRepository entrantsRepository) { this.entrantsRepository = entrantsRepository; }
public SaveEntrantHandler(IEntrantsRepository entrantsRepository) { this.entrantsRepository = entrantsRepository; }