WeatherWorkerIntegrationTests¶
Namespace: IntegrationTests.WeatherWorker
Integration tests for the Weather Data Worker to verify coordinate management, InfluxDB operations,
API response parsing, and dependency resolution functionality.
Inheritance Object → IntegrationTestBase → WeatherWorkerIntegrationTests
Constructors¶
WeatherWorkerIntegrationTests()¶
Methods¶
Configuration_ContainsRequiredWeatherApiSettings()¶
Tests that the configuration system contains the required weather API settings and sections.
CoordinateRepo_GetLocation_ReturnsLocationByPostalCode()¶
Tests the coordinate repository's ability to retrieve location data by postal code or location name.
Returns¶
CoordinateRepo_GetUnlockedLocation_ReturnsAvailableLocation()¶
Tests the coordinate repository's ability to retrieve unlocked locations for weather data collection.
Returns¶
HttpClientFactory_CanCreateHttpClient()¶
Tests the HTTP client factory's ability to create HTTP client instances for API communication.
InfluxRepo_WriteOutsideWeatherData_DoesNotThrowException()¶
Tests the InfluxDB repository's ability to write weather data without throwing exceptions in test environment.
Returns¶
WeatherData_Properties_CanBeSetAndRetrieved()¶
Tests the WeatherData model's property assignment and retrieval functionality.
Worker_CanParseBrightSkyApiResponse()¶
Tests JSON parsing functionality for Bright Sky API response format to extract temperature and timestamp data.
Worker_CanParseMeteoApiResponse()¶
Tests JSON parsing functionality for Open-Meteo API response format to extract temperature and timestamp data.
WorkerDependencies_CanBeResolved()¶
Tests that all required weather worker dependencies can be resolved from the dependency injection container.