title: Mvc 4 unit testing concept
body: <p>I am trying to understand the concept of TDD in MVC 4 application.
  All examples I've found over the net doesn't explained me the concept of what Unit test in a case of MVC 4 application should test.</p>
  
  <p>So when you writing your unit testing , what are the main points you are trying to test in your controller?</p>
  
  <p>If possible please explain on this example.</p>
  
  <pre><code>public class UsersIDentController : AuthorizedController
  {    
      private readonly IUserDetailsService userDetailsService;
  
      public UsersIDentController(IUserDetailsService userDetailsService,
              IServiceLocator serviceLocator): base(serviceLocator)
      {
      }    
  
      //
      // GET: /UsersIdentification/
      [AllowAnonymous]
      public ActionResult ShowDetails()
      {
          UsersIdentificationViewModel model = new UsersIdentificationViewModel();
          return View(model);
      }
  }
  </code></pre>
  
  <p>If you'd be writing unit test for this controller (gettin user data) what will you test in unit test.</p>
  
  <p>Thanks.</p>