public void ViewReports_ReturnsApprovedReports() { ConsultantController controller = new ConsultantController(); ViewResult result = controller.ViewReportsForTesting("Approved", 1) as ViewResult; IEnumerable<BueConsulting.Models.Report> reports = (IEnumerable<BueConsulting.Models.Report>)result.Model; if(reports != null) foreach (var report in reports) Assert.AreEqual("APPROVED", report.AccountsApproval); }
public void ViewReports_ReturnsPenidingReports() { ConsultantController controller = new ConsultantController(); ViewResult result = controller.ViewReportsForTesting("Pending", 1) as ViewResult; IEnumerable<BueConsulting.Models.Report> reports = (IEnumerable<BueConsulting.Models.Report>)result.Model; foreach (var report in reports) { Assert.AreEqual("PENDING", report.AccountsApproval); } }