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); }
public AuthenticationController(IJwtBearerAuthenticationService jwtBearerAuthenticationService) { _jwtBearerAuthenticationService = jwtBearerAuthenticationService; }