Class InMemoryAchievementStore
In-memory IAchievementStore used for tests. Honors the port's upsert-if-newer
contract: a write carrying a revision at or below the stored row is discarded, exactly as a
structured backend's UpsertIfBetterAsync would discard it.
Inheritance
InMemoryAchievementStore
Assembly: Tests.dll
Syntax
public class InMemoryAchievementStore : IAchievementStore
Constructors
InMemoryAchievementStore()
Declaration
public InMemoryAchievementStore()
Properties
EnsureSchemaCallCount
Declaration
public int EnsureSchemaCallCount { get; }
Property Value
UpsertProgressCallCount
How many progress writes reached the store, including the ones the revision check discarded.
Declaration
public int UpsertProgressCallCount { get; }
Property Value
UpsertUnlockCallCount
How many unlock writes reached the store, including the ones the revision check discarded.
Declaration
public int UpsertUnlockCallCount { get; }
Property Value
Methods
ClearAsync(PlayerId, CancellationToken)
Declaration
public Task ClearAsync(PlayerId player, CancellationToken cancellationToken)
Parameters
Returns
EnsureSchemaAsync(CancellationToken)
Declaration
public Task EnsureSchemaAsync(CancellationToken cancellationToken)
Parameters
Returns
GetProgressAsync(PlayerId, CancellationToken)
Declaration
public Task<IReadOnlyList<AchievementProgress>> GetProgressAsync(PlayerId player, CancellationToken cancellationToken)
Parameters
Returns
GetUnlocksAsync(PlayerId, CancellationToken)
Declaration
public Task<IReadOnlyList<AchievementUnlockRecord>> GetUnlocksAsync(PlayerId player, CancellationToken cancellationToken)
Parameters
Returns
HealthCheckAsync(CancellationToken)
Declaration
public Task<bool> HealthCheckAsync(CancellationToken cancellationToken)
Parameters
Returns
UpsertProgressAsync(PlayerId, AchievementProgress, CancellationToken)
Declaration
public Task UpsertProgressAsync(PlayerId player, AchievementProgress progress, CancellationToken cancellationToken)
Parameters
Returns
UpsertUnlockAsync(AchievementUnlockRecord, CancellationToken)
Declaration
public Task UpsertUnlockAsync(AchievementUnlockRecord record, CancellationToken cancellationToken)
Parameters
Returns
Implements