AuthenticationControllerIntegrationTests¶
Namespace: IntegrationTests.Controllers
Integration tests for the Authentication Controller to verify login, registration, and JWT token functionality.
public class AuthenticationControllerIntegrationTests : IntegrationTests.Infrastructure.ApiClientTestBase
Inheritance Object → IntegrationTestBase → ApiClientTestBase → AuthenticationControllerIntegrationTests
Constructors¶
AuthenticationControllerIntegrationTests()¶
Methods¶
Login_InvalidCredentials_ThrowsApiException()¶
Tests login attempt with invalid credentials and verifies proper 401 Unauthorized response.
Login_ValidCredentials_ReturnsJwtToken()¶
Tests successful login with valid credentials and verifies JWT token generation with proper structure.
Returns¶
Register_WithAdminToken_ReturnsOk()¶
Tests user registration functionality with admin authorization and verifies successful user creation.