コード例 #1
0
ファイル: StudentTests.cs プロジェクト: MiroPakanec/EFlats
        public void UpdateStudentProfileNonExistingEmail()
        {
            CtrStudent ctrStudentObj = new CtrStudent();

            bool expected = false;
            bool actual = ctrStudentObj.UpdateProfile("*****@*****.**",
                2, false, 0, true, "name", "surname", "address", "postCode", "city", "country", "phone");

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public bool EditStudentProfile(string email, int numberOfChildren, bool pet, int numberOfCohabitors, bool disabled,
            string name, string surname, string address, string postCode, string city, string country, string phone)
        {
            ctrStudentObj = new CtrStudent();

            Console.WriteLine();
            Console.WriteLine("EditStudentProfile() " + GetExecutionThreadTime());

            return ctrStudentObj.UpdateProfile(email, numberOfChildren, pet, numberOfCohabitors, disabled,
                name, surname, address, postCode, city, country, phone);
        }