Exemplo n.º 1
0
 public void TestViewNotificationsbyTopTen()
 {
     //Create the Controller for the test
     var controller = new MvcApplication1.Controllers.ReportController();
     //Execute the method to receive the result
     var result = controller.ViewNotifications() as System.Web.Mvc.ViewResult;
     //Cast the result as the appropriate Model
     var model = (MvcApplication1.Models.NotificationsReportModel)result.ViewData.Model;
     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);
 }