public Test_Report() { this.iKartoteka2InfoFake = new Fake_kartoteka2Info(); this.iParticipantReportFake = new Fake_ParticipanReport(); this.iParticipantReportTrue = new ParticipantResult(); this.iParticipantResultListFake = new Test_ParticipantResultList(); }
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); }
public kartoteka2 getOneParticipantById(IKartoteka2Info allParticipant, int kart_id) { var result = allParticipant.getInformationAboutAllParticipant(); result = result.Where(x => x.kart_id == kart_id).ToList(); if (!result.Any()) { return(allParticipant.getEmptyResult()); } else { return(result.First()); } }
public kartoteka2 getInformationAboutOneParticipantFromKartoteka2(IKartoteka2Info allParticipant, string name, string surname, string email) { var source = allParticipant.getInformationAboutAllParticipant(); var result = source.Where(x => x.kart_imie == name && x.kart_nazwisko == surname && x.kart_email == email).First(); if (result != null) { return(result); } else { return(getEmptyResult()); } }
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(); }
public vResultList CertificateDataSource(IKartoteka2Info ikartotekaInfo, IParticipantResultList iresult, string name, string surname, string email) { throw new NotImplementedException(); }
public Test_kartoteka2Info() { ikartoteka2InfoTrue = new Kartoteka2Info(); ikartoteka2InfoFake = new Fake_kartoteka2Info(); }
public kartoteka2 getOneParticipantById(IKartoteka2Info allParticipant, int kart_id) { throw new NotImplementedException(); }
public kartoteka2 getInformationAboutOneParticipantFromKartoteka2(IKartoteka2Info allParticipant, string name, string surname, string email) { return(allParticipant.getInformationAboutAllParticipant().First()); }