public void patient_verificationCode_empty(string email, bool result) { LoginController con = new LoginController(); patient_login log = new patient_login { email = email }; dynamic var1 = con.getPatientLoginVerificationCode(log); Assert.AreEqual(var1.Content.success, result); }
public void patientLogin_wrongPassword(string email, string password, bool result) { // patient/login patient_login pat = new patient_login { email = email, password = password }; LoginController cont = new LoginController(); dynamic var1 = cont.getPatientLoginPassword(pat); Assert.AreEqual(var1.Content.success, result); }
public void patientLoginUsername(string email, bool success) { //patient/email patient_login pat = new patient_login { email = email }; LoginController login = new LoginController(); dynamic var1 = login.getPatientLoginUsername(pat); Assert.AreEqual(var1.Content.success, success); }