Table of Contents

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

Id string

The stable scenario identifier.

Number int

The scenario's number in the issue and the walkthrough.

Title string

The short title.

Path string

The governed endpoint the scenario calls, or null when it sends no request.

Teaches string

What the scenario shows.

Expectation string

The outcome and evidence the scenario expects.

RequiresCapabilityTokens bool

Whether 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

string

Id

The stable scenario identifier.

public string Id { get; init; }

Property Value

string

Number

The scenario's number in the issue and the walkthrough.

public int Number { get; init; }

Property Value

int

Path

The governed endpoint the scenario calls, or null when it sends no request.

public string? Path { get; init; }

Property Value

string

RequiresCapabilityTokens

Whether the scenario needs signed capability tokens to be enabled.

public bool RequiresCapabilityTokens { get; init; }

Property Value

bool

Teaches

What the scenario shows.

public string Teaches { get; init; }

Property Value

string

Title

The short title.

public string Title { get; init; }

Property Value

string