Exemple #1
0
 public void Init()
 {
     _httpContextAccessorMoc         = new Mock <IHttpContextAccessor>();
     _customerService                = new Mock <ICustomerService>();
     _userApiServiceMock             = new Mock <IUserApiService>();
     _httpContextMock                = new Mock <HttpContext>();
     _authService                    = new ApiAuthenticationService(_httpContextAccessorMoc.Object, _customerService.Object);
     _jwtBearerAuthenticationService = new JwtBearerAuthenticationService(_customerService.Object, _userApiServiceMock.Object);
 }
Exemple #2
0
 public AuthenticationController(IJwtBearerAuthenticationService jwtBearerAuthenticationService)
 {
     _jwtBearerAuthenticationService = jwtBearerAuthenticationService;
 }