Beispiel #1
0
        public void TestGetTasksForEmployee()
        {
            int EmployeeId   = 2;
            int ConferenceId = 1;
            var result       = taskTest.GetTasksForEmployee(EmployeeId, ConferenceId);

            Assert.AreEqual("TestTask", result.First().Title);
        }
Beispiel #2
0
        public IHttpActionResult GetTasksForEmployee(int employeeId, int conferenceId)
        {
            var tasks = _bll.GetTasksForEmployee(employeeId, conferenceId);

            if (tasks == null)
            {
                return(BadRequest());
            }
            return(Ok(tasks));
        }