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