title: Create user without UserManager in Asp.Net Core Identity
body: <p>On an ASP.NET Core 1.1 application with ASP.NET Identity I created a user:</p>
  
  <pre><code>PasswordHasher&lt;User&gt; hasher = new PasswordHasher&lt;User&gt;();
  
  User user = new User {
    Email = "john@company.com",
    Username = "john@company.com
  };
  
  user.PasswordHash = hasher.HashPassword(user, "johnpass");
  
  context.Users.Add(user);
  context.SaveChanges();
  </code></pre>
  
  <p>The user is created but when I try to sign using the following it fails:</p>
  
  <pre><code>SignInResult result = await _signInManager.PasswordSignInAsync("john@company.com", "johnpass", false, true);     
  </code></pre>
  
  <p>I then tried to create the user using the UserManager:</p>
  
  <pre><code>PasswordHasher&lt;User&gt; hasher = new PasswordHasher&lt;User&gt;();
  
  User user = new User {
    Email = "john@company.com",
    Username = "john@company.com
  };
  
  await userManager.CreateAsync(user, "johnpass");
  </code></pre>
  
  <p>Now I am able to sign in. It seems the problem is with HashPassword method.</p>
  
  <p>Does anyone knows how to create the user without UserManager?    </p>
  
  <p><strong>UPDATE</strong><br>
  I tried to create a UserManager without reeling on Injection because I am creating my test data on a Console Application and not on the Web Application:</p>
  
  <pre><code>var userStore = new UserStore(Context);
  
  var userManager = new UserManager&lt;User&gt;(userStore, null, null, null, null, null, null, null, null); 
  </code></pre>
  
  <p>The user is created but I am still not able to sign in.</p>