title: Difficulty to start up with basic unit test (Sample from my book -- SportsStore)
body: <p>I'm really new in TDD and, actually, I'm trying to follow the sample from my book (<strong>SportsStore -- Pro ASP.NET MVC Framework/Steve Sanderson/APRESS</strong>). I'm on pages 103-105.</p>
  
  <p>Although there are more on this, as new to all of this, I'm concerned with the following statements.</p>
  
  <pre><code>ProductsController controller = new ProductsController(repository);
  var result = controller.List(2);
       //...
  </code></pre>
  
  <p>regarding the above statements, when I write this (as in the book), </p>
  
  <pre><code>var products = result.ViewData.Model as IList&lt;Product&gt;;
  </code></pre>
  
  <p>I get a compiler error "<em>System.Web.MVC.ActionResult" does not contain a definition for ViewData ...</em>" But, when I remove the <strong>List()</strong> from the statement, then the compiler error disapear.</p>
  
  <pre><code>var result = controller.List(2);//Doesn't work
  var result = controller;//It works
  </code></pre>
  
  <p>Is something wrong there? I checked Apress website for that book, but there is nothing listed as Errata or issue. <strong>So I'm really lost.</strong></p>
  
  <p>Thanks for helping</p>