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
IdstringThe stable scenario identifier.
NumberintThe scenario's number in 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.
AvailableboolWhether the scenario can run now.
UnavailableReasonstringWhy the scenario cannot run now, when it cannot.
Properties
Available
Whether the scenario can run now.
public bool Available { get; init; }
Property Value
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 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
Teaches
What the scenario shows.
public string Teaches { get; init; }
Property Value
Title
The short title.
public string Title { get; init; }
Property Value
UnavailableReason
Why the scenario cannot run now, when it cannot.
public string? UnavailableReason { get; init; }