Class TestFunctionBindings

Namespace
XBullet.EasyTesting.AzureFunctions
Assembly
XBullet.EasyTesting.AzureFunctions.dll

Captures input bindings, output bindings, and the invocation return value.

public sealed class TestFunctionBindings
Inheritance
TestFunctionBindings
Inherited Members

Properties

Inputs

Gets captured input values by binding name.

public IReadOnlyDictionary<string, object?> Inputs { get; }

Property Value

IReadOnlyDictionary<string, object>

A live read-only, case-insensitive view. Values are retained without cloning and may be null.

InvocationResult

Gets the unmodified value returned by the function.

public object? InvocationResult { get; }

Property Value

object

The original function return value, or null when no value has been captured or the function returned null. The value is retained without cloning.

OutputTypes

Gets worker binding types for captured outputs.

public IReadOnlyDictionary<string, string> OutputTypes { get; }

Property Value

IReadOnlyDictionary<string, string>

A live read-only, case-insensitive mapping from output name to non-empty worker binding type.

Outputs

Gets captured output values by binding name.

public IReadOnlyDictionary<string, object?> Outputs { get; }

Property Value

IReadOnlyDictionary<string, object>

A live read-only, case-insensitive view. Values are retained without cloning and may be null.

Methods

GetInput<T>(string)

Gets a captured input value by binding name.

public T? GetInput<T>(string name)

Parameters

name string

The non-empty captured input name, matched case-insensitively.

Returns

T

The typed value, or the default T value when the captured value is null.

Type Parameters

T

The expected assignable value type; no conversion is performed.

GetOutput<T>(string)

Gets a captured output value by binding name.

public T? GetOutput<T>(string name)

Parameters

name string

The non-empty captured output name, matched case-insensitively.

Returns

T

The typed value, or the default T value when the captured value is null.

Type Parameters

T

The expected assignable value type; no conversion is performed.

Should()

Starts fluent assertions over captured output bindings.

public TestOutputBindingAssertions Should()

Returns

TestOutputBindingAssertions

A new assertion object that reads this collection's current output values.