Esempio n. 1
0
 public void TestDataSourcesReportbyNotificationID()
 {
     //Create the Controller for the test
     var controller = new MvcApplication1.Controllers.ReportController();
     //Execute the method in the controller which will return a report
     MvcApplication1.Models.DataSourcesModel model = controller.DataSourcesReport(notificationID: 5733);
     Assert.AreEqual("4247976", model.DataSourceID[0]);
     Assert.AreEqual("1G-BK-201311280928.XML", model.DataSourceID[0]);
     Assert.AreEqual("2013-11-28 09:28:31.217", model.UploadDateTime[0]);
     Assert.AreEqual("XML", model.DataSourceType[0]);
     Assert.AreEqual(16, model.ExtractsCount[0]);
 }