Table of Contents

Class FailureScenarioView

Namespace
ReferenceApplication.Web.Governance.FailureScenarios
Assembly
ReferenceApplication.Web.dll

A scenario as the explorer lists it, with whether the current actor can run it.

public sealed record FailureScenarioView : IEquatable<FailureScenarioView>
Inheritance
FailureScenarioView
Implements
Inherited Members

Constructors

FailureScenarioView(string, int, string, string?, string, string, bool, string?)

A scenario as the explorer lists it, with whether the current actor can run it.

public FailureScenarioView(string Id, int Number, string Title, string? Path, string Teaches, string Expectation, bool Available, string? UnavailableReason)

Parameters

Id string

The stable scenario identifier.

Number int

The scenario's number in 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.

Available bool

Whether the scenario can run now.

UnavailableReason string

Why the scenario cannot run now, when it cannot.

Properties

Available

Whether the scenario can run now.

public bool Available { get; init; }

Property Value

bool

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 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

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

UnavailableReason

Why the scenario cannot run now, when it cannot.

public string? UnavailableReason { get; init; }

Property Value

string