# Class CacheDispatcherTest

Namespace
  adas_core.Test.Services

Assembly
  adas-core.Test.dll

    [TestFixture]
    public class CacheDispatcherTest

Inheritance
  object
  CacheDispatcherTest

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## 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()