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
bindingNamestringThe non-empty worker input name. The default is
timer.
Returns
- TestTriggerData<TimerInfo>
New timer trigger data containing
IsPastDueandScheduleStatusbinding metadata.
PastDue(bool)
Marks the timer invocation as past due.
public TestTimerInfoBuilder PastDue(bool isPastDue = true)
Parameters
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
lastDateTimeThe previous scheduled time; its Kind is preserved.
nextDateTimeThe next scheduled time; ordering is not validated.
lastUpdatedDateTime?The time the schedule was updated, or null to reuse
last.
Returns
- TestTimerInfoBuilder
This builder, for chaining, replacing prior schedule status.