public void ApproveReport()
        {
            AccountsStaffController controller = new AccountsStaffController();
            IEnumerable<BueConsulting.Models.Report> reports;

            using (TransactionScope testTransaction = new TransactionScope())
            {
                ViewResult result = controller.ApproveReport(46) as ViewResult;
                reports = (IEnumerable<BueConsulting.Models.Report>)result.Model;

                testTransaction.Dispose(); // rollback
            }

            reports = from rep in reports where rep.ReportId == 1 select rep;

            foreach (var report in reports)
                Assert.AreEqual("APPROVED", report.AccountsApproval);
        }
        public void ApproveReport_ReturnsModel_AccountsApprovalIsPendingSupervisorApprovalIsApproved()
        {
            AccountsStaffController controller = new AccountsStaffController();
            IEnumerable<BueConsulting.Models.Report> reports;

            using (TransactionScope testTransaction = new TransactionScope())
            {
                ViewResult result = controller.ApproveReport(46) as ViewResult;
                reports = (IEnumerable<BueConsulting.Models.Report>)result.Model;

                testTransaction.Dispose(); // rollback
            }

            foreach (var report in reports)
            {
                Assert.AreEqual("PENDING", report.AccountsApproval);
                Assert.AreEqual("APPROVED", report.SupervisorApproval);
            }
        }