public void Given_Submitted_Checklist_Special_Report_when_is_reverted_then_properties_are_set()
        {
           var user = new UserForAuditing();

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

            checklist.Revert(user, "Test User");

            Assert.That(checklist.Status, Is.EqualTo("Assigned"));
            Assert.That(checklist.ExecutiveSummaryDocumentLibraryId, Is.Null);
            Assert.That(checklist.ChecklistSubmittedBy, Is.Null);
            Assert.That(checklist.ChecklistSubmittedOn, Is.Null);
            Assert.That(checklist.LastModifiedBy, Is.EqualTo(user));

        }
        public void Given_Submitted_Checklist_is_reverted_then_properties_are_set()
        {
            var actionPlan = new ActionPlan() { Id = 1, Title = "My Action Plan" };
            var actions = new List<Action>();
            actionPlan.Actions = actions;

            var user = new UserForAuditing();

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

            checklist.Revert(user,"Test User");

            Assert.That(checklist.Status,Is.EqualTo("Assigned"));
            Assert.That(checklist.ExecutiveSummaryDocumentLibraryId, Is.Null);
            Assert.That(checklist.ChecklistSubmittedBy, Is.Null);
            Assert.That(checklist.ChecklistSubmittedOn, Is.Null);
            Assert.That(checklist.LastModifiedBy, Is.EqualTo(user));
            
        }
        public void Given_Submitted_Checklist_is_reverted_then_Action_Plan_is_Removed()
        {
            var actionPlan = new ActionPlan() { Id = 1, Title = "My Action Plan" };
            var actions = new List<Action>();
            actionPlan.Actions = actions;

            var user = new UserForAuditing();

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

            checklist.Revert(user,"Test User");

            Assert.That(checklist.ActionPlan, Is.EqualTo(null));
            
        }