public void Add_Parent_Task()
        {
            var taskId = _parentTasks.Count() + 1;
            var task   = new ParentTaskEntity
            {
                TaskId   = taskId,
                TaskName = "Parent Task Test"
            };

            _mockRepository.AddParentTask(task);
            Assert.IsTrue(_parentTasks.Count() == 4);

            ParentTaskEntity testTask = GetParentById(taskId);

            Assert.IsNotNull(testTask);
            Assert.AreSame(testTask.GetType(), typeof(ParentTaskEntity));
            Assert.AreEqual(task.TaskName, testTask.TaskName);
        }
        //Add the Parent Task
        public void ShouldAddParentTask()
        {
            var parentId     = _parentTaskList.Count() + 1;
            var parentDetail = new ParentTaskEntity
            {
                ParentId     = parentId,
                ParentTask   = "Add New Parent",
                ParentStatus = "Y",
                AddDate      = new DateTime(2018, 9, 10),
                UpdtDate     = new DateTime(2018, 9, 11)
            };

            _mockRepository.AddParentTask(parentDetail);

            ParentTaskEntity addedParent = GetParentTask(parentId);

            Assert.IsTrue(_parentTaskList.Count() == 4);
            Assert.IsNotNull(addedParent);
            Assert.AreSame(addedParent.GetType(), typeof(ParentTaskEntity));
            Assert.AreEqual(parentId, addedParent.ParentId);
            Assert.IsTrue(parentDetail.ParentTask == addedParent.ParentTask);
        }