public AuthenticationServiceTest()
 {
     _contextBuilder = new ContextBuilder();
     _signInManager  = new FakeSignInManager();
     _userManager    = CreateUserManager("Server=tcp:kosa-czy-sztama.database.windows.net,1433;Initial Catalog=kosa-czy-sztama;Persist Security Info=False;User ID=kosa;Password=Qwer1234.;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;");
     _appSettings    = Options.Create(new AppSettings()
     {
         Secret = "SPECIALFORTESTS"
     });
     _jwtHelper            = new JwtHelper(_appSettings, _contextBuilder.Context);
     _authorizationService = new AuthenticationService(_contextBuilder.Context, _signInManager, _userManager, _jwtHelper, _logger);
 }
Example #2
0
 public AuthenticationServiceTest()
 {
     _contextBuilder = new ContextBuilder();
     _signInManager  = new FakeSignInManager();
     _userManager    = CreateUserManager();
     _appSettings    = Options.Create(new AppSettings()
     {
         Secret = "SPECIALFORTESTS"
     });
     _jwtHelper            = new JwtHelper(_appSettings, _contextBuilder.Context);
     _authorizationService = new AuthenticationService(_contextBuilder.Context, _signInManager, _userManager, _jwtHelper, _logger);
 }