RunicViewRequest record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicViewRequest : IEquatable<RunicViewRequest>

Inherits or implements IEquatable.

A view request that a RunicTestPresentation received, as a page's handler would.

Parameters

Name

The request's generated name, such as focus for a Focus property.

Route

The route of the presentation.

Presentation

The presentation id.

Revision

The route's revision that includes everything the ViewModel changed before raising it.

InputJson

The request's input, as wire JSON.

Constructors

RunicViewRequest

public RunicViewRequest(string Name, string Route, string Presentation, long Revision, string InputJson)

A view request that a RunicTestPresentation received, as a page's handler would.

Parameters

Name

The request's generated name, such as focus for a Focus property.

Route

The route of the presentation.

Presentation

The presentation id.

Revision

The route's revision that includes everything the ViewModel changed before raising it.

InputJson

The request's input, as wire JSON.

Properties

InputJson

public string InputJson { get; init; }

The request's input, as wire JSON.

Name

public string Name { get; init; }

The request's generated name, such as focus for a Focus property.

Presentation

public string Presentation { get; init; }

The presentation id.

Revision

public long Revision { get; init; }

The route's revision that includes everything the ViewModel changed before raising it.

Route

public string Route { get; init; }

The route of the presentation.

Methods

Input

public T Input<T>()

Reads RunicViewRequest.InputJson as T with System.Text.Json's web defaults and enum names, which read the wire form of records and classes with camel-case members; compare RunicViewRequest.InputJson for other values.

Type parameters

T

The request's input type.