//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); }
public void AddParentTask(ParentTaskEntity parentTask) { _projDL.AddParentTask(parentTask); }