TemperatureDataControllerIntegrationTests¶
Namespace: IntegrationTests.Controllers
Integration tests for the Temperature Data Controller to verify temperature data retrieval and filtering
functionality.
public class TemperatureDataControllerIntegrationTests : IntegrationTests.Infrastructure.ApiClientTestBase
Inheritance Object → IntegrationTestBase → ApiClientTestBase → TemperatureDataControllerIntegrationTests
Constructors¶
TemperatureDataControllerIntegrationTests()¶
Methods¶
GetTemperature_MissingParameters_ReturnsBadRequestOrInternalError()¶
Tests temperature data retrieval with missing or null parameters and verifies proper error response handling.
Returns¶
GetTemperature_WithAdminToken_ReturnsResponse()¶
Tests temperature data retrieval with admin token and verifies successful response or expected error handling.
Returns¶
GetTemperature_WithFahrenheitConversion_ReturnsResponse()¶
Tests temperature data retrieval with Fahrenheit temperature conversion and verifies proper unit conversion
functionality.
Returns¶
GetTemperature_WithoutToken_ThrowsUnauthorizedException()¶
Tests temperature data retrieval without authentication token and verifies 401 Unauthorized response.
GetTemperature_WithValidUserToken_ReturnsResponse()¶
Tests temperature data retrieval with valid user token and verifies successful response or expected error handling.