public ParticipantController( IParticipantResultList _iparticipanResult, ICreatingFilters _filters, IParticipantStartingGroup _istartGroup, IInfoAboutParticipant infoAboutParticipant) { this.iparticipanResult = _iparticipanResult; this.ifilters = _filters; this.istartGroup = _istartGroup; this.infoAboutParticipant = infoAboutParticipant; }
public List <VStartingLists> getSpecificList(string nazwisko, IParticipantStartingGroup istartingGroup) { List <VStartingLists> result = new List <VStartingLists>(); if (String.IsNullOrEmpty(nazwisko)) { nazwisko = ""; } var source = istartingGroup.getAllList(); source = source.Where(x => x.kart_nazwisko.ToUpper().Contains(nazwisko.ToUpper())).ToList(); if (!source.Any()) { return(istartingGroup.getEmptyRow()); } else { result = istartingGroup.getAllList().Where(x => source.Any(y => y.list_id == x.list_id)).ToList(); return(result); } }
public Test_PartipantStartingGroup() { this.iFakeparticipant = new Fake_ParticipantStartingGroup(); this.iTrueparticipant = new ParticipantStartingGroup(); }
public List <VStartingLists> getSpecificList(string nazwisko, IParticipantStartingGroup istartingGroup) { throw new NotImplementedException(); }