Ejemplo n.º 1
0
        public BasicFilterProvider(List <Triathlete> athletes, IDurationFilter filter)
        {
            Trace.TraceInformation("BasicFilterProvider");

            _Filter   = filter;
            _Athletes = athletes;
        }
Ejemplo n.º 2
0
        /***************************************
         * GetAthletes()
         * Retrieve the athletes with the given request values
         * ****************************************/
        public List <Triathlete> GetAthletes(IRaceCriteria criteria, IDurationFilter filter)
        {
            var allAthletes = GetAthletes(criteria);

            //filter these athletes
            //in the future we may inject the Provider, but for now create it ...
            return(new BasicFilterProvider(allAthletes, filter).GetAthletes());
        }