예제 #1
0
 public GetResultsHandler(ITestRunsRepository testRunsRepository, IEventsRepository eventsRepository, IEntrantsRepository entrantsRepository)
 {
     this.testRunsRepository = testRunsRepository;
     this.eventsRepository   = eventsRepository;
     this.entrantsRepository = entrantsRepository;
     totalTimeCalculator     = new AutoTestTotalTimeCalculator();
 }
예제 #2
0
 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);
        }
예제 #4
0
 public GetEntrantsHandler(IEntrantsRepository entrantsRepository)
 {
     this.entrantsRepository = entrantsRepository;
 }
예제 #5
0
 public SaveEntrantHandler(IEntrantsRepository entrantsRepository)
 {
     this.entrantsRepository = entrantsRepository;
 }