Skip to content

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 ObjectIntegrationTestBaseApiClientTestBaseTemperatureDataControllerIntegrationTests

Constructors

TemperatureDataControllerIntegrationTests()

public TemperatureDataControllerIntegrationTests()

Methods

GetTemperature_MissingParameters_ReturnsBadRequestOrInternalError()

Tests temperature data retrieval with missing or null parameters and verifies proper error response handling.

public Task GetTemperature_MissingParameters_ReturnsBadRequestOrInternalError()

Returns

Task

GetTemperature_WithAdminToken_ReturnsResponse()

Tests temperature data retrieval with admin token and verifies successful response or expected error handling.

public Task GetTemperature_WithAdminToken_ReturnsResponse()

Returns

Task

GetTemperature_WithFahrenheitConversion_ReturnsResponse()

Tests temperature data retrieval with Fahrenheit temperature conversion and verifies proper unit conversion
functionality.

public Task GetTemperature_WithFahrenheitConversion_ReturnsResponse()

Returns

Task

GetTemperature_WithoutToken_ThrowsUnauthorizedException()

Tests temperature data retrieval without authentication token and verifies 401 Unauthorized response.

public void GetTemperature_WithoutToken_ThrowsUnauthorizedException()

GetTemperature_WithValidUserToken_ReturnsResponse()

Tests temperature data retrieval with valid user token and verifies successful response or expected error handling.

public Task GetTemperature_WithValidUserToken_ReturnsResponse()

Returns

Task