public AuthorAuthenticationServiceTest(ITestOutputHelper output) { _faker = new Faker("pt_BR"); _output = output; var provider = ServicesConfiguration.Configure(); _dbContext = provider .GetRequiredService <DataContext>() .SeedTestData(); _unitOfWork = provider.GetRequiredService <IUnitOfWork>(); _authenticationService = new AuthorAuthenticationService(_unitOfWork, new JwtOptions { Secret = "9ce891b219b6fb5b0088e3e05e05baf5", TokenLifetime = TimeSpan.FromMinutes(5) }); }
public AuthenticationsController(IAuthorAuthenticationService authService, IMapper mapper) { _authService = authService; _mapper = mapper; }