title: How to create ApplicationUser by UserManager in Seed method of ASP .NET MVC 5 Web application
body: <p>I can create users in the old way:</p>
  
  <pre><code> var users = new List&lt;ApplicationUser&gt; { 
                          new ApplicationUser{PasswordHash = hasher.HashPassword("TestPass44!"), Email = "informatyka4444@wp.pl", UserName = "informatyka4444@wp.pl",  SecurityStamp = Guid.NewGuid().ToString()},
                          new ApplicationUser{PasswordHash = hasher.HashPassword("TestPass44!"), Email = "informatyka4445@wp.pl", UserName = "informatyka4445@wp.pl",  SecurityStamp = Guid.NewGuid().ToString()}
                          };
  
  users.ForEach(user =&gt; context.Users.AddOrUpdate(user));
  
  context.SaveChanges();
  </code></pre>
  
  <p>but I want to do it the ASP.NET MVC 5.1 way using <code>UserManager</code>. I peeked how the <code>Register</code> POST method looks in <code>AccountController</code>:</p>
  
  <pre><code> public async Task&lt;ActionResult&gt; Register(RegisterViewModel model) {
              if (ModelState.IsValid) {
                  var user = new ApplicationUser() { UserName = model.Email, Email = model.Email };
                  IdentityResult result = await UserManager.CreateAsync(user, model.Password);
                  if (result.Succeeded) { [...]
  </code></pre>
  
  <p>so I tried do the same:</p>
  
  <pre><code>var user =  new ApplicationUser() { Email = "informatyka4444@wp.pl", 
                                      UserName = "informatyka4444@wp.pl"};
  IdentityResult result =  UserManager.CreateAsync(user, "abcwq12312!P");
  </code></pre>
  
  <p>but I get this:</p>
  
  <p><img src="https://i.stack.imgur.com/9Skiq.png" alt="enter image description here"></p>
  
  <p>also If I just type <code>UserManager.</code> VS2013 does not shows any methods on the list.</p>
  
  <p>So how to add user in this way?</p>
  
  <p>EDIT1:</p>
  
  <p><img src="https://i.stack.imgur.com/YlTUS.png" alt="enter image description here"></p>