public void Details_Sets_Dog_To_Model() { var expectedModel = new Dog(); dogRepo.FindById(1).Returns(expectedModel); var result = underTest.Details(1); var model = result.Model; Assert.Equal(expectedModel, model); }
public ViewResult Details(int id) { var model = dogRepo.FindById(id); return(View(model)); }