public void TestGetTasksForEmployee() { int EmployeeId = 2; int ConferenceId = 1; var result = taskTest.GetTasksForEmployee(EmployeeId, ConferenceId); Assert.AreEqual("TestTask", result.First().Title); }
public IHttpActionResult GetTasksForEmployee(int employeeId, int conferenceId) { var tasks = _bll.GetTasksForEmployee(employeeId, conferenceId); if (tasks == null) { return(BadRequest()); } return(Ok(tasks)); }