Making It Green
If you realize, our test failed because we call the Index but it just return the View. The idea is throwing the products when Index being called.
public ViewResult Index()
{
var products = repository.GetAll();
return View(products);
}
Rebuild the project and run the test again.