public void Find_ShouldFindItem( int id, string chassis) { // Act TruckViewModel truckViewModel = TruckService.Find(id); // Assert Assert.AreEqual(chassis, truckViewModel.Chassis, "It should return the same Chassis"); }
// GET: Truck/Details/5 public ActionResult Details(int id) { var truckViewModel = TruckService.Find(id); return(View(truckViewModel)); }