public void IndexValidLoadsDestinations() { // act var result = destinationsController.Index().Result; // get the view result var viewResult = (ViewResult)result; // assert - convert result to list of products & compare to mock product list CollectionAssert.AreEqual(destinations.OrderByDescending(p => p.Name).ToList(), (List <Destination>)viewResult.Model); }