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();
        }
Example #2
0
 public bool AddNewParticipant(string name, string sname, string email, int dys_id,
                               ISimpleAddingParticipant2 isimpleAdd, IPlayerVerfication iparticipant,
                               IAddZawodnik iaddParticipant, INewRecord inewRecord)
 {
     if (isimpleAdd.validateFormatEmail(email))
     {
         var result = inewRecord.createNewRecord(name, sname, email, "", null, "", "", dys_id, 1);
         if (!iparticipant.searchPlayer(result))
         {
             return(iaddParticipant.addParticipantWithoutTimeRegistrationVerification(result));
         }
         else
         {
             this.errorInformation = "Zawodnik istnieje";
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #3
0
 public SimpleAddingParticipant(INewRecord inewRecord, IAddZawodnik iaddZawodnik, IPlayerVerfication iparticipant)
 {
     this.inewRecord      = inewRecord;
     this.iaddParticipant = iaddZawodnik;
     this.iparticipant    = iparticipant;
 }
 public RegistrationController(ICreatingFilters _filters, IPlayerVerfication _iplayer, IGrupa igrupa)
 {
     this._filters = _filters;
     this._iplayer = _iplayer;
     this._igrupa  = igrupa;
 }