Class FailureScenarioDefinition
- Namespace
- ReferenceApplication.Web.Governance.FailureScenarios
- Assembly
- ReferenceApplication.Web.dll
Describes one preset failure or attacker scenario.
public sealed record FailureScenarioDefinition : IEquatable<FailureScenarioDefinition>
- Inheritance
-
FailureScenarioDefinition
- Implements
- Inherited Members
Constructors
FailureScenarioDefinition(string, int, string, string?, string, string, bool)
Describes one preset failure or attacker scenario.
public FailureScenarioDefinition(string Id, int Number, string Title, string? Path, string Teaches, string Expectation, bool RequiresCapabilityTokens)
Parameters
IdstringThe stable scenario identifier.
NumberintThe scenario's number in the issue and the walkthrough.
TitlestringThe short title.
PathstringThe governed endpoint the scenario calls, or null when it sends no request.
TeachesstringWhat the scenario shows.
ExpectationstringThe outcome and evidence the scenario expects.
RequiresCapabilityTokensboolWhether the scenario needs signed capability tokens to be enabled.
Properties
Expectation
The outcome and evidence the scenario expects.
public string Expectation { get; init; }
Property Value
Id
The stable scenario identifier.
public string Id { get; init; }
Property Value
Number
The scenario's number in the issue and the walkthrough.
public int Number { get; init; }
Property Value
Path
The governed endpoint the scenario calls, or null when it sends no request.
public string? Path { get; init; }
Property Value
RequiresCapabilityTokens
Whether the scenario needs signed capability tokens to be enabled.
public bool RequiresCapabilityTokens { get; init; }
Property Value
Teaches
What the scenario shows.
public string Teaches { get; init; }
Property Value
Title
The short title.
public string Title { get; init; }