title: Unit Test - User Account
body: <p>ASP.Net app in Visual Studio 2008</p>
  
  <p>I'm creating unit tests to test (in)valid logins for a web app.  I have an Authenticate(User,Pass)  bool method.  The null case and invalid password tests are properly working.</p>
  
  <p>My question is how to test a valid login.  I have accounts that are valid for the web app, but I feel like hardcoding in the username and password probably isn't the best solution.  </p>
  
  <p>I'm thinking I may have to:
    create a test user
    grant the user access to the web app
    run my tests
    delete the testuser</p>
  
  <p>Is there a better approach?</p>