コード例 #1
0
 public ParticipantController(
     IParticipantResultList _iparticipanResult,
     ICreatingFilters _filters,
     IParticipantStartingGroup _istartGroup,
     IInfoAboutParticipant infoAboutParticipant)
 {
     this.iparticipanResult    = _iparticipanResult;
     this.ifilters             = _filters;
     this.istartGroup          = _istartGroup;
     this.infoAboutParticipant = infoAboutParticipant;
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public Test_PartipantStartingGroup()
 {
     this.iFakeparticipant = new Fake_ParticipantStartingGroup();
     this.iTrueparticipant = new ParticipantStartingGroup();
 }
コード例 #4
0
 public List <VStartingLists> getSpecificList(string nazwisko, IParticipantStartingGroup istartingGroup)
 {
     throw new NotImplementedException();
 }