Table of Contents

Class DevelopmentData

Namespace
Core.CliniCore.Bootstrap
Assembly
Core.CliniCore.dll

Canonical development data specifications and validation helpers.

public static class DevelopmentData
Inheritance
DevelopmentData
Inherited Members

Properties

ExpectedCredentials

All expected development credentials (built from SampleCredentials).

public static IReadOnlyList<DevCredentialSpec> ExpectedCredentials { get; }

Property Value

IReadOnlyList<DevCredentialSpec>

IsDebugMode

Indicates whether the application is running in debug/development mode. Use this to conditionally display development credentials in UI.

public static bool IsDebugMode { get; }

Property Value

bool

Methods

GetByRole(UserRole)

Gets all credential specs for a specific role.

public static IEnumerable<DevCredentialSpec> GetByRole(UserRole role)

Parameters

role UserRole

The user role to filter by.

Returns

IEnumerable<DevCredentialSpec>

A collection of credential specifications matching the specified role.

GetByUsername(string)

Gets credential spec by username.

public static DevCredentialSpec? GetByUsername(string username)

Parameters

username string

The username to search for (case-insensitive).

Returns

DevCredentialSpec

The matching credential specification, or null if not found.

GetMissingCredentials(ICredentialRepository)

Returns credentials that don't exist in the repository.

public static IEnumerable<DevCredentialSpec> GetMissingCredentials(ICredentialRepository repo)

Parameters

repo ICredentialRepository

The credential repository to check against.

Returns

IEnumerable<DevCredentialSpec>

A collection of missing credential specifications.

IsFullySeeded(ICredentialRepository)

Checks if all expected development credentials exist.

public static bool IsFullySeeded(ICredentialRepository repo)

Parameters

repo ICredentialRepository

The credential repository to validate.

Returns

bool

True if all credentials exist; otherwise, false.