Edit

Share via


SetProperties class

Mock one or more property values.

Extends

Properties

$kind
assignments

Gets or sets the property assignments.

Methods

execute(TestAdapter, (context: TurnContext) => Promise<void>, Inspector)

Execute the test.

getConverter(Object)

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

Property Details

$kind

static $kind: string

Property Value

string

assignments

Gets or sets the property assignments.

assignments: PropertyAssignment[]

Property Value

PropertyAssignment[]

Method Details

execute(TestAdapter, (context: TurnContext) => Promise<void>, Inspector)

Execute the test.

function execute(_adapter: TestAdapter, _callback: (context: TurnContext) => Promise<void>, inspector?: Inspector): Promise<void>

Parameters

_adapter

TestAdapter

Adapter to execute against.

_callback

(context: TurnContext) => Promise<void>

Logic for the bot to use.

inspector
Inspector

Inspector for dialog context.

Returns

Promise<void>

A Promise that represents the work queued to execute.

getConverter(Object)

function getConverter(property: Object): Converter | ConverterFactory

Parameters

property

Object

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.

Inherited Method Details

configure(Record<string, unknown>)

Fluent method for configuring the object.

function configure(config: Record<string, unknown>): this

Parameters

config

Record<string, unknown>

Configuration settings to apply.

Returns

this

The Configurable after the operation is complete.

Inherited From Configurable.configure