예제 #1
0
        public vResultList CertificateDataSource(IKartoteka2Info ikartotekaInfo, IParticipantResultList iresult, string name, string surname, string email)
        {
            var source       = ikartotekaInfo.getInformationAboutOneParticipantFromKartoteka2(ikartotekaInfo, name, surname, email);
            var listOfResult = iresult.getResultList().Where(x => x.kart_id == source.kart_id).First();

            return(listOfResult);
        }
예제 #2
0
 public Test_Report()
 {
     this.iKartoteka2InfoFake        = new Fake_kartoteka2Info();
     this.iParticipantReportFake     = new Fake_ParticipanReport();
     this.iParticipantReportTrue     = new ParticipantResult();
     this.iParticipantResultListFake = new Test_ParticipantResultList();
 }
 public ParticipantController(
     IParticipantResultList _iparticipanResult,
     ICreatingFilters _filters,
     IParticipantStartingGroup _istartGroup,
     IInfoAboutParticipant infoAboutParticipant)
 {
     this.iparticipanResult    = _iparticipanResult;
     this.ifilters             = _filters;
     this.istartGroup          = _istartGroup;
     this.infoAboutParticipant = infoAboutParticipant;
 }
예제 #4
0
        public List <vResultList> getResultListByDystans(int dys_id, IParticipantResultList iparticipantResult)
        {
            List <vResultList> result = new List <vResultList>();
            var source = iparticipantResult.getResultList();

            result = source.Where(x => x.dys_id == dys_id).ToList();
            if (result.Any())
            {
                result = result.OrderBy(x => x.dys_id).ThenBy(x => x.sum_seconds).ToList();
                result = result.OrderByDescending(x => x.iloscOdbic).ToList();
                return(result);
            }
            else
            {
                return(emptyResult());
            }
        }
예제 #5
0
        public List <vResultList> getResultListByDane(string dane, IParticipantResultList iparticipantResult)
        {
            List <vResultList> result = new List <vResultList>();

            var source = iparticipantResult.getResultList();

            result = source.Where(x => x.dane.ToUpper().Contains(dane.ToUpper())).ToList();
            if (result.Any())
            {
                result = result.OrderBy(x => x.dys_id).ThenBy(x => x.sum_seconds).ToList();
                return(result);
            }
            else
            {
                return(emptyResult());
            }
        }
        public RegistrationParticipantController(
            IInfoAboutParticipant iinfoParticipant,
            IOfficeEntities iOfficeEntities,
            IStoredProcedures istoredP
            )
        {
            this.iinfoParticipant = iinfoParticipant;
            this.ikartoteka2      = new Kartoteka2Info();
            this.idystans         = new DystansFiltr();
            this.iOfficeEntities  = iOfficeEntities;
            this.istoredP         = istoredP;

            this.icheck             = new CheckWerification();
            this.inewRec            = new NewRecord();
            this.iaddZaw            = new AddZawodnik(icheck);
            this.iplayer            = new PlayerVerification();
            this.isimpleAdd         = new SimpleAddingParticipant(inewRec, iaddZaw, iplayer);
            this.ireport            = new ParticipantResult();
            this.iresultParticipant = new ParticipantResultList();
        }
예제 #7
0
 public vResultList getResultFotOneParticipant(int kart_id, IParticipantResultList iparticipantResult)
 {
     if (kart_id > 0)
     {
         var source = iparticipantResult.getResultList();
         var result = source.Where(x => x.kart_id == kart_id);
         if (result.Any())
         {
             return(result.First());
         }
         else
         {
             return(iparticipantResult.emptyResult().First());
         }
     }
     else
     {
         return(iparticipantResult.emptyResult().First());
     }
 }
예제 #8
0
 public vResultList CertificateDataSource(IKartoteka2Info ikartotekaInfo, IParticipantResultList iresult, string name, string surname, string email)
 {
     throw new NotImplementedException();
 }
 public List <vResultList> getResultListByDane(string dane, IParticipantResultList iparticipantResult)
 {
     return(null);
 }
 public UnitTest_ParticipantResult()
 {
     this.iparticipantResult      = new ParticipantResultList();
     this.iparticipantResult_Test = new Test_ParticipantResultList();
 }
 public vResultList getResultFotOneParticipant(int kart_id, IParticipantResultList iparticipantResult)
 {
     throw new NotImplementedException();
 }
 public List <vResultList> getResultListByDystans(int dys_id, IParticipantResultList iparticipantResult)
 {
     throw new NotImplementedException();
 }