Exemplo n.º 1
0
 public void TestPaxReportbyPaxID()
 {
     //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.PaxModel model = controller.PaxReport(PaxID:18500);
     Assert.AreEqual("18500", model.PaxID[0]);
     Assert.AreEqual("CAROLINE", model.PaxFirst[0]);
     Assert.AreEqual("-", model.PaxMiddle[0]);
     Assert.AreEqual("HAGSTRAND", model.PaxLast[0]);
     Assert.AreEqual("MS", model.PaxTitle[0]);
     Assert.AreEqual("F", model.PaxGender[0]);
     Assert.AreEqual("ADT", model.PaxType[0]);
     Assert.AreEqual("1900-01-01 00:00:00.000", model.PaxDOB[0]);
 }