RunicWindowTestHostOptions class

Namespace Runic.Application.Testing · Runic.Application.Testing 0.7.0-preview.5

public sealed class RunicWindowTestHostOptions

Configures a RunicWindowTestHost.

Constructors

RunicWindowTestHostOptions

public RunicWindowTestHostOptions()

No documentation.

Properties

CreateId

public Func<string>? CreateId { get; init; }

Creates content reference ids and interaction request ids. Defaults to the sequence 1, 2, ..., so content routes are content1, content2, ...

LoggerFactory

public ILoggerFactory? LoggerFactory { get; init; }

Receives the window's Bridge, operation and mount logs.

ModelContext

public IRunicModelContext? ModelContext { get; init; }

The model context the window graph must share, if any.

OperationShutdown

public CancellationToken OperationShutdown { get; init; }

Cancels window-owned operations when signalled.

PublicationTimeout

public TimeSpan PublicationTimeout { get; init; }

How long a driver waits for a state publication. Delivery runs off the calling thread, so this is real time. Defaults to five seconds.

RootRoute

public string? RootRoute { get; init; }

The generated root route. Defaults to the ViewModel's generated name: shell for ShellViewModel.

TimeProvider

public TimeProvider? TimeProvider { get; init; }

The window's clock, which interaction deadlines and close timeouts use. Defaults to a new FakeTimeProvider, so time passes only when the test advances it. Register the same instance in the application's services to control its time too.

ViewLocator

public IRunicViewLocator? ViewLocator { get; init; }

Resolves .NET Views for presented content.