Class SubscriberGroupedTest
[TestFixture]
public class SubscriberGroupedTest
- Inheritance
-
SubscriberGroupedTest
- Inherited Members
- Extension Methods
Methods
Compare_ExtensionResult()
Verifies the behavior of the Compare extension method by asserting that it returns true when the gender and patient identifiers match the active context, and false when they do not, covering both the primary and secondary contexts.
[Test]
public void Compare_ExtensionResult()
GetGroupeds_ReturnsExpectedResult()
Verifies that the GetGrouped() method returns the list of grouped subscribers provided by the mocked service. Ensures the service correctly returns the expected collection of WsSubscriberGrouped items without modification.
[Test]
public void GetGroupeds_ReturnsExpectedResult()
Grouped_Observation_Already_Observations_In_Hour_Should_Be_IRelevant_By_Max_Result()
Verifies that a new observation is considered not relevant for a grouped observation when the grouping rule is set to "Max", the regularity is "Hour", an observation already exists within the same hour, and the new observation's value does not exceed the existing maximum value.
[Test]
public void Grouped_Observation_Already_Observations_In_Hour_Should_Be_IRelevant_By_Max_Result()
Grouped_Observation_Already_Observations_In_Hour_Should_Be_Relevant_By_Max_Result()
Verifies that a new patient observation is considered relevant for a grouped observation when an observation already exists within the configured hour interval and the grouping uses the Max result.
[Test]
public void Grouped_Observation_Already_Observations_In_Hour_Should_Be_Relevant_By_Max_Result()
Observation_is_rrelevant_because_is_the_first_in_hour()
Verifies that a new patient observation is considered relevant for its group when it is the first observation recorded within the current hour.
[Test]
public void Observation_is_rrelevant_because_is_the_first_in_hour()
Setup()
Initializes test fixtures used by grouped observation and WebSocket subscriber tests, including GroupedObservation, GroupedField, WsSubscriber, and WsSubscriberGrouped instances configured for two distinct patients with shift- and hour-based regularities and last/last-filled result mappings.
[SetUp]
public void Setup()