public void GetAllFlightsTest() { var flights = controller.ListFlights().ViewData.Model as List <Flight>; for (int i = 0; i < repoFlights.Count; i++) { Assert.Equal(repoFlights[i].Flight_Destination, flights[i].Flight_Destination); Assert.Equal(repoFlights[i].Flight_Details, flights[i].Flight_Details); Assert.Equal(repoFlights[i].Flight_Purpose, flights[i].Flight_Purpose); Assert.Equal(repoFlights[i].Flight_Origin, flights[i].Flight_Origin); } }