Class TestTimerInfoBuilder

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

Fluently builds timer-trigger input without a Functions runtime.

public sealed class TestTimerInfoBuilder
Inheritance
TestTimerInfoBuilder
Inherited Members

Methods

Build()

Creates timer input for direct function invocation.

public TimerInfo Build()

Returns

TimerInfo

A new timer value with the current past-due flag and optional schedule status.

BuildTrigger(string)

Creates timer input together with capturable trigger metadata.

public TestTriggerData<TimerInfo> BuildTrigger(string bindingName = "timer")

Parameters

bindingName string

The non-empty worker input name. The default is timer.

Returns

TestTriggerData<TimerInfo>

New timer trigger data containing IsPastDue and ScheduleStatus binding metadata.

PastDue(bool)

Marks the timer invocation as past due.

public TestTimerInfoBuilder PastDue(bool isPastDue = true)

Parameters

isPastDue bool

true for a late invocation; otherwise, false. The default is true.

Returns

TestTimerInfoBuilder

This builder, for chaining.

WithSchedule(DateTime, DateTime, DateTime?)

Sets the timer schedule timestamps.

public TestTimerInfoBuilder WithSchedule(DateTime last, DateTime next, DateTime? lastUpdated = null)

Parameters

last DateTime

The previous scheduled time; its Kind is preserved.

next DateTime

The next scheduled time; ordering is not validated.

lastUpdated DateTime?

The time the schedule was updated, or null to reuse last.

Returns

TestTimerInfoBuilder

This builder, for chaining, replacing prior schedule status.