Class DevelopmentData
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
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
Methods
GetByRole(UserRole)
Gets all credential specs for a specific role.
public static IEnumerable<DevCredentialSpec> GetByRole(UserRole role)
Parameters
roleUserRoleThe 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
usernamestringThe 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
repoICredentialRepositoryThe 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
repoICredentialRepositoryThe credential repository to validate.
Returns
- bool
True if all credentials exist; otherwise, false.