Table of Contents

Class MockCbmsDataStore

Namespace
SEBT.Portal.StatePlugins.CO.CbmsApi.Mocks
Assembly
SEBT.Portal.StatePlugins.CO.CbmsApi.dll

Cache-backed mock data store for CBMS API responses. Seeds from embedded JSON files on first access, indexed by phone number via a manifest file. Supports read (phone lookup) and write (PATCH mutation) operations. Thread safety is provided by HybridCache.

public sealed class MockCbmsDataStore
Inheritance
object
MockCbmsDataStore

Constructors

MockCbmsDataStore(HybridCache)

public MockCbmsDataStore(HybridCache cache)

Parameters

cache HybridCache

Methods

ApplyPatchAsync(string, CancellationToken)

public Task<string> ApplyPatchAsync(string requestBodyJson, CancellationToken cancellationToken = default)

Parameters

requestBodyJson string
cancellationToken CancellationToken

Returns

Task<string>

GetResponseForPhoneAsync(string, CancellationToken)

public Task<string> GetResponseForPhoneAsync(string normalizedPhone, CancellationToken cancellationToken = default)

Parameters

normalizedPhone string
cancellationToken CancellationToken

Returns

Task<string>