コード例 #1
0
ファイル: PatientLoginTest.cs プロジェクト: quarxdmz/iothings
        public void patientProf_emailexist(string email, string password, string name_first, string name_last, string dob, string gender, bool result)
        {
            patient_signup sig = new patient_signup
            {
                email      = email,
                password   = password,
                name_first = name_first,
                name_last  = name_last,
                dob        = dob,
                gender     = gender
            };

            LoginController con  = new LoginController();
            dynamic         var1 = con.postPatientSignup(sig);

            Assert.AreEqual(var1.Content.success, result);
        }
コード例 #2
0
ファイル: PatientLoginTest.cs プロジェクト: quarxdmz/iothings
        public void patientProf_signup(string email, string password, string name_first, string name_last, string dob, string gender, bool result)
        {
            //IsRequired("email", patient.email, 1);
            //IsRequired("password", patient.password, 1);
            //IsRequired("name_first", patient.name_first, 1);
            //IsRequired("name_last", patient.name_last, 1);
            //IsRequired("dob", patient.dob, 1);
            //IsRequired("gender", patient.gender, 1);

            patient_signup sig = new patient_signup {
                email = email, password = password, name_first = name_first, name_last = name_last, dob = dob, gender = gender
            };

            LoginController con  = new LoginController();
            dynamic         var1 = con.postPatientSignup(sig);

            Assert.AreEqual(var1.Content.success, result);
        }