public void GetAll_ReturnsAllItineraryObjects_ItineraryList() { //Arrange string name1 = "Test Itinerary1"; string name2 = "Test Itineray2"; Itinerary newItinerary1 = new Itinerary(name1); Itinerary newItinerary2 = new Itinerary(name2); List <Itinerary> newList = new List <Itinerary> { newItinerary1, newItinerary2 }; //Act List <Itinerary> result = Itinerary.GetAll(); //Assert CollectionAssert.AreEqual(newList, result); }
public ActionResult Index() { List <Itinerary> allItineraries = Itinerary.GetAll(); return(View(allItineraries)); }