=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -24,6 +24,7 @@ public class GroupedObservationServiceTest
|
||||
/// (configuration observation service, observation repository, logger, and cache service)
|
||||
/// and instantiating the <see cref="GroupedObservationService"/> under test with default API and cache settings.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=dee8bf2 body=681afdf -->
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
@@ -46,6 +47,7 @@ public class GroupedObservationServiceTest
|
||||
/// verifying the distribution of observations across shifts for the current day, the previous day, and two days prior when the
|
||||
/// Result.Last aggregation is applied with a maximum count of 36.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=49572e1 body=ce7d966 -->
|
||||
[Test]
|
||||
public void Generate_Shift_Observations()
|
||||
{
|
||||
@@ -101,6 +103,7 @@ public class GroupedObservationServiceTest
|
||||
/// the current day, the previous day, and two days prior, ensuring that data is aggregated into the
|
||||
/// correct shift and day buckets.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=d4b4f96 body=5a17087 -->
|
||||
[Test]
|
||||
public void Calculate_Shift_Observations()
|
||||
{
|
||||
@@ -248,6 +251,7 @@ public class GroupedObservationServiceTest
|
||||
/// so that the returned sequence contains a complete set of five consecutive hourly observations
|
||||
/// (covering the last five hours relative to the current time) for a group with hourly regularity and a maximum of five entries.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=667f3ff body=a77fd75 -->
|
||||
[Test]
|
||||
public async Task Calculate_Last_Filled_Observations_should_add_Minus_4_hour_to_complete_last_five_hours()
|
||||
{
|
||||
@@ -303,6 +307,7 @@ public class GroupedObservationServiceTest
|
||||
/// adding the <c>-1 hour</c> observation when it is not present in the provided list so that the returned
|
||||
/// collection always contains a complete five-hour window of last filled observations.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=f2c5b12 body=9dbcc21 -->
|
||||
[Test]
|
||||
public async Task Calculate_Last_Filled_Observations_should_add_Minus_1_hour_to_complete_last_five_hours()
|
||||
{
|
||||
@@ -356,6 +361,7 @@ public class GroupedObservationServiceTest
|
||||
/// <summary>
|
||||
/// Verifies that the service correctly fills hourly observations from half-hour observation data, grouping timestamped values by hour and forwarding missing slots up to the configured maximum (5) per hour.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=381b258 body=ed397dd -->
|
||||
[Test]
|
||||
public void FillHoursObservations()
|
||||
{
|
||||
@@ -486,6 +492,7 @@ public class GroupedObservationServiceTest
|
||||
/// <param name="resultType">The result type that determines how the value is stored; aggregate types (HalfHour, Sum, Count, Min, Average, Max) are stored directly, while others are wrapped in a sub-document with time and stringified value.</param>
|
||||
/// <param name="all">Optional BsonArray of additional entries; when provided, it is appended to the result under the "all" key.</param>
|
||||
/// <returns>A BsonDocument containing the _id composite key, a time field, the result-type-specific payload, and optionally the "all" array.</returns>
|
||||
/// <!-- aidoc:v1 sig=e94c5ea body=f4284ca -->
|
||||
private static BsonDocument GenerateBsonDocument(int? year, int? month, int? day, int? hour, int? minute,
|
||||
string name, object value, Result resultType, BsonArray? all)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user