Table of Contents

Class CacheDispatcherTest

Namespace
adas_core.Test.Services
Assembly
adas-core.Test.dll
[TestFixture]
public class CacheDispatcherTest
Inheritance
CacheDispatcherTest
Inherited Members
Extension Methods

Methods

Classify_ReturnsUnknown_ForUnrecognizedPrefix()

Verifies that Classify(string) returns Unknown when the provided cache key does not start with any recognized prefix.

[Test]
public void Classify_ReturnsUnknown_ForUnrecognizedPrefix()

GetOrSetObjectAsync_UsesCacheService_WhenAppointmentsModeIsCache()

[Test]
public Task GetOrSetObjectAsync_UsesCacheService_WhenAppointmentsModeIsCache()

Returns

Task

GetOrSetObjectAsync_UsesCacheService_WhenKeyIsUnrecognized()

[Test]
public Task GetOrSetObjectAsync_UsesCacheService_WhenKeyIsUnrecognized()

Returns

Task

GetOrSetObjectAsync_UsesNoCacheService_WhenPumpObservationsModeIsNone()

[Test]
public Task GetOrSetObjectAsync_UsesNoCacheService_WhenPumpObservationsModeIsNone()

Returns

Task

GetOrSetObjectAsync_UsesRedisService_WhenPatientsModeIsRedis()

[Test]
public Task GetOrSetObjectAsync_UsesRedisService_WhenPatientsModeIsRedis()

Returns

Task

SetUp()

Initializes the test environment by instantiating fake implementations of the Redis, in-memory, and no-op cache services, along with default CacheSettings, and constructs a CacheDispatcher under test using these dependencies.

[SetUp]
public void SetUp()