Exemplo n.º 1
0
 public void TestNotificationsReportbyTopTen()
 {
     //Create the Controller for the test
     var controller = new MvcApplication1.Controllers.ReportController();
     //Execute the method in the controller which will return a report
     //Execute report by NotificationID[0]
     MvcApplication1.Models.NotificationsReportModel model = controller.NotificationsReport();
     Assert.AreEqual("4091", model.NotificationID[0]);
     Assert.AreEqual("Galileo-Bookings-1G-BK-201311270605.XML", model.NotificationDescription[0]);
     Assert.AreEqual("2013-11-27 06:05:32.310", model.SendDateTime[0]);
     Assert.AreEqual("PNR", model.LanguageType[0]);
     Assert.AreEqual(5, model.RecipientCount[0]);
     Assert.AreEqual(10, model.NotificationID.Count);
 }