Inheritance: IAuthenticationService
 public void RegisterTest()
 {
     IAuthenticationService _authenticationService = new AuthenticationService(new AccountRepository(), new SHA256PasswordHasher());
     bool expected = true, actual;
     if(_authenticationService.Register("testUserName", "testPassword") &&
         _authenticationService.Register("testUserNameOther", "testAuthKey", "testProvider"))
     {
         actual = true;
     }
     else
     {
         actual = false;
     }
     Assert.AreEqual(expected, actual);
 }
 public void FindTest()
 {
     IAuthenticationService _authenticationService = new AuthenticationService(new AccountRepository(), new SHA256PasswordHasher());
     bool expected = true, actual;
     if (_authenticationService.Find(1) != null &&
         _authenticationService.Find("testName") != null &&
         _authenticationService.Find("testName", "testPassword") != null)
     {
         actual = true;
     }
     else
     {
         actual = false;
     }
     Assert.AreEqual(expected, actual);
 }
 public void GetIdentityTest()
 {
     IAuthenticationService _authenticationService = new AuthenticationService(new AccountRepository(), new SHA256PasswordHasher());
     Assert.IsNotNull(_authenticationService.GetIdentity(new User()));
 }
 public void FindExternalTest()
 {
     IAuthenticationService _authenticationService = new AuthenticationService(new AccountRepository(), new SHA256PasswordHasher());
     Assert.IsNotNull(_authenticationService.FindExternal("testAuthKey"));
 }