Exemple #1
0
        public void TestGetByTaskId()
        {
            taskId = 4;
            Task item = businessObj.GetTaskById(taskId);

            Assert.AreEqual(taskId, item.TaskID);
        }
Exemple #2
0
        public IHttpActionResult GetById(int id)
        {
            Task task = businessObj.GetTaskById(id);

            if (task == null)
            {
                return(NotFound());
            }
            return(Ok(task));
        }
 public void BenchmarkGetByTaskId()
 {
     obj.GetTaskById(1);
 }