public void GetTaskByIdTest() { Mock <TaskDBEntities> mockContext = MockDataSetList(); var taskManagerBL = new TaskBL(mockContext.Object); var task = taskManagerBL.Get(1); Assert.IsNotNull(task); Assert.AreEqual(1, task.Task_ID); }
public TaskSet Get(int id) { return(bl.Get(id)); }