Table of Contents

Class TestShell

Namespace
The.WPF.Mocks
Assembly
Instagile.WPF.dll
public sealed class TestShell : IShell
Inheritance
TestShell
Implements
Inherited Members

Fields

ActiveSurface

public TestSurface? ActiveSurface

Field Value

TestSurface

GlobalScreen

public TestSurface GlobalScreen

Field Value

TestSurface

Screens

public readonly HashSet<TestSurface> Screens

Field Value

HashSet<TestSurface>

Sidebars

public readonly HashSet<ISidebarController> Sidebars

Field Value

HashSet<ISidebarController>

Properties

ErrorOutput

public List<string>? ErrorOutput { get; set; }

Property Value

List<string>

Methods

AddSidebar(ISidebarController)

public void AddSidebar(ISidebarController sidebar)

Parameters

sidebar ISidebarController

CancelModal()

public Task CancelModal()

Returns

Task

ConfirmModal()

public Task ConfirmModal()

Returns

Task

CreateSurface(IServices)

Create one of whatever the application considers a 'screen'

public ISurface CreateSurface(IServices services)

Parameters

services IServices

Returns

ISurface

DestroySurface(ISurface)

Initiate a closing process for a non-global screen

public void DestroySurface(ISurface surface)

Parameters

surface ISurface

GetGlobalSurface(IServices)

Retrieve a singleton 'global' screen for contextless UI

public ISurface GetGlobalSurface(IServices services)

Parameters

services IServices

Returns

ISurface

ReloadSurface(ISurface, Func<Task>)

Initiate a reload process (caller-defined) for a non-global screen

public void ReloadSurface(ISurface _, Func<Task> reload)

Parameters

_ ISurface
reload Func<Task>

RemoveSidebar(ISidebarController)

public void RemoveSidebar(ISidebarController sidebar)

Parameters

sidebar ISidebarController

Reset()

public void Reset()

ResourcesReady()

Called when WPF resources have been loaded, allowing initial display of UI in incomplete state

public void ResourcesReady()

ServicesReady(IServices)

Called when the screen infrastructure is ready, allowing post-construction setup

public Task ServicesReady(IServices root)

Parameters

root IServices

Returns

Task