public void Given_Submitted_Checklist_When_Any_of_the_Action_is_Assigned_then_CanBeReverted_Returns_false()
        {
            var actionPlan = new ActionPlan() { Id = 1, Title = "My Action Plan", Deleted = false, };
            var action = new Action() { Id = 1, ActionPlanId = actionPlan.Id, ActionPlan = actionPlan, AssignedTo = new Employee() };

            var actionTasks = new List<ActionTask>();
            actionTasks.Add(new ActionTask() { Action = action} );

            action.ActionTasks = actionTasks;

            var actions = new List<Action>();
            actions.Add(action);
            actions.Add(new Action() { Id = 2, ActionPlanId = actionPlan.Id, ActionPlan = actionPlan, });
            actions.Add(new Action() { Id = 3, ActionPlanId = actionPlan.Id, ActionPlan = actionPlan, });

            actionPlan.Actions = actions;

            var checklist = new Checklist
            {
                Id = Guid.NewGuid(),
                ActionPlan = actionPlan,
                Status = "Submitted"
            };

            var target = checklist.CanBeReverted();

            Assert.IsFalse(target);
        }
        public void Given_Submitted_Checklist_When_No_Action_then_CanBeReverted_Returns_true()
        {
            var actionPlan = new ActionPlan() { Id = 1, Title = "My Action Plan", Deleted = false, };

            var actions = new List<Action>();
            actionPlan.Actions = actions;

            var checklist = new Checklist
            {
                Id = Guid.NewGuid(),
                ActionPlan = actionPlan,
                Status = "Submitted"
            };

            var target = checklist.CanBeReverted();

            Assert.IsTrue(target);
        }