예제 #1
0
        public bool AddToWishlist(string studentEmail, int flatId, int score)
        {
            ctrStudentObj = new CtrStudent();

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

            return ctrStudentObj.AddToWishlist(studentEmail, flatId, score);
        }
예제 #2
0
        public void AddToWishListRepeatSameFail()
        {
            bool actualResult = true;
            bool expectedResult = false;

            CtrStudent ctrStudentObj = new CtrStudent();

            actualResult = ctrStudentObj.AddToWishlist(360, GetFlatId(), 0, -1);
            Assert.AreEqual(expectedResult, actualResult);
        }
예제 #3
0
        public void AddToWishListExistingApplicaation()
        {
            CtrStudent ctrStudentObj = new CtrStudent();
            MdlStudent mdlStudentObj = StudentTests.GenerateStudentObj();

            CtrGetData ctrGetDataObj = new CtrGetData();
            DataSet ds = ctrGetDataObj.GetAllFlats();

            MdlApplication mdlApplicationObj = new MdlApplication();
            string studentEmail = "*****@*****.**";
            int flatId = (int)ds.Tables[0].Rows[0]["Id"];
            int score = 100;

            bool actual = ctrStudentObj.AddToWishlist(studentEmail, flatId, score);
            bool expected = false;

            Assert.AreEqual(expected, actual);
        }