public bool AddParentTask(ParentTaskModel parentTaskModel)
        {
            EntityMapper <ParentTaskModel, ParentTask> mapObj = new EntityMapper <ParentTaskModel, ParentTask>();
            var parentTask = mapObj.Translate(parentTaskModel);

            return(ProjectManagerRepository.InsertParentTask(parentTask));
        }
        public void InsertParentTaskForInValidDataTest()
        {
            var inValidData = new ParentTask()
            {
                ParentTaskName = null
            };
            var isSuccess = ProjectManagerRepository.InsertParentTask(inValidData);

            Assert.AreEqual(false, isSuccess);
        }
        public void InsertParentTaskForValidDataTest()
        {
            var validData = new ParentTask()
            {
                ParentTaskName = "Build Framework"
            };
            var isSuccess = ProjectManagerRepository.InsertParentTask(validData);

            Assert.AreEqual(true, isSuccess);
        }
        public void InsertParentTaskForNullTest()
        {
            var isSuccess = ProjectManagerRepository.InsertParentTask(null);

            Assert.AreEqual(false, isSuccess);
        }