public ActionResult ParticipantRegister(kartoteka2 kartotekaModel) { if (kartotekaModel != null) { var result = ikartoteka2.getInformationAboutOneParticipantFromKartoteka2( ikartoteka2, kartotekaModel.kart_imie, kartotekaModel.kart_nazwisko, kartotekaModel.kart_email); if (result.kart_wpis_oplata == false || result.kart_wpis_oplata == null) { istoredP.pStartinPayment(kartotekaModel.kart_imie, kartotekaModel.kart_nazwisko, kartotekaModel.kart_email); istoredP.pInitializationAllParticipnat(); return(RedirectToAction("ListOfRegistering", "RegistrationParticipant", new { surname = kartotekaModel.kart_nazwisko })); } else { return(RedirectToAction("ListOfRegistering", "RegistrationParticipant", new { surname = "" })); } } else { return(RedirectToAction("ListOfRegistering", "RegistrationParticipant", new { surname = "" })); } }
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 void Test_getInformationAboutOneParticipantFromKartoteka2_resultOneRow() { //arrange var target = ikartoteka2InfoFake.getInformationAboutAllParticipant().First(); //act var result = ikartoteka2InfoTrue.getInformationAboutOneParticipantFromKartoteka2(ikartoteka2InfoFake, "test_imie", "test_nazwisko", "*****@*****.**"); //assert Assert.AreEqual(target.kart_imie, result.kart_imie); Assert.AreEqual(target.kart_nazwisko, result.kart_nazwisko); Assert.AreEqual(target.kart_email, result.kart_email); }