public bool AddToWishlist(string studentEmail, int flatId, int score) { ctrStudentObj = new CtrStudent(); Console.WriteLine(); Console.WriteLine("AddToWishlist() " + GetExecutionThreadTime()); return ctrStudentObj.AddToWishlist(studentEmail, flatId, score); }
public void AddToWishListRepeatSameFail() { bool actualResult = true; bool expectedResult = false; CtrStudent ctrStudentObj = new CtrStudent(); actualResult = ctrStudentObj.AddToWishlist(360, GetFlatId(), 0, -1); Assert.AreEqual(expectedResult, actualResult); }
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); }