title: TDD Unit test of ASP.NET Webforms
body: <p>I am new to TDD and I am reading many books to grasp the concepts of TDD. </p>
  
  <p>I have few question if someone can guide me. Let's say If I am creating a unit test for login authentication, Do I have to insert a dummy User first and then test the methods based on the test user I have inserted? </p>
  
  <p>In order to test the business logic for Login Authentication, here are some test methods that I have in my mind:</p>
  
  <pre><code>1- Authenticate_UserId_or_Password_ShouldNotbeNull()
  
  2- Authenticate_UserId_And_Password_ShouldreturnValidUser()
  </code></pre>
  
  <p>For #1, I created a test method:</p>
  
  <pre><code>[Test]
  public void Authenticate_UserId_or_Password_ShouldNotbeNull()
  {
  
  LoginService login = new LoginService();
  string strUserId="UserIdTest";
  string strPassword="PasswordTest";
  
  login.Authenticate(strUserId, strPassword);
  
  // What assert method should I use to test it? 
  
  }
  </code></pre>
  
  <p>Also one more question, I was reading about mocking. Is mocking another name of Proxy Pattern? </p>