XBullet.EasyTesting.AzureFunctions
In-process invocation tools for .NET isolated-worker functions and trigger data.
<PackageReference Include="XBullet.EasyTesting.AzureFunctions" Version="VERSION" />
Primary APIs
- AzureFunctionTestFactory<TEntryPoint> reuses an executable application's startup configuration and DI container with test overrides.
- AzureFunctionTestHost resolves and invokes functions.
- AzureFunctionTestHostBuilder configures services and middleware.
- AzureFunctionTestScenarioScope owns resource resets and scenario cleanup.
- FunctionScenario provides guarded, single-use domain arrangement.
- FunctionScopedTest provides a borrowed host and isolated scenario runner.
- TestHttpRequestBuilder creates HTTP trigger requests.
- TestDurableTaskClient records client attempts, seeds metadata fixtures, provides management handlers, and participates in scenario diagnostics/reset.
- TestDurableWorkflow connects named orchestrators,
activities, children, and external events to a client through a borrowed function host's DI scopes
and middleware, with metadata, result waits, diagnostics, and bounded cleanup.
WithSerializationoptionally checks payload conversion through the SDK JSON converter or a suppliedDataConverter. - TestDurableTaskSequence<TResult> supplies ordered results and failures with explicit exhaustion and scenario reset.
- RecordedDurableTaskAttempt records actual activity/child
attempts.
TestDurableWorkflow.WithRetriesenables bounded SDK policy/handler simulation using manual time. - TestDurableTaskSequenceExhaustedException identifies exhausted test scripts and stops retry simulation.
- TestDurableEntityClient provides entity signals,
typed metadata fixtures, query/cleanup handlers, and scenario diagnostics/reset through
client.Entities. - TestOrchestrationEntityFeature records orchestrator calls, signals, and local lock markers with explicitly configured results.
- TestEntityOperation, TestEntityContext, and TestEntityState run real SDK entity implementations with serialized input/state and recorded outgoing operations.
- RecordedEntityOperation and EntityOperationKind describe entity interaction attempts.
- RecordedOrchestrationStart exposes scheduling input, options, task name, and selected instance ID.
- RecordedDurableClientOperation exposes invocation order, operation kind, target ID, and original SDK arguments.
- DurableClientOperation identifies client operation kinds.
- TestOrchestrationMetadataBuilder creates SDK instance metadata with typed payloads, failures, tags, and deterministic timestamps.
- TestDurableTaskClientAssertions verifies counts, targets, arguments, and operation sequences with readable failure timelines.
- TestDurableTaskClientVerificationException reports a mismatched client assertion.
- TestOrchestrationContext provides typed input, identity, replay flags, manual timers, buffered events, recorded dispatch, and configurable runtime stubs.
See the host guide, trigger recipes, and Durable boundary. See connected workflows for end-to-end dispatch. See Durable Entity tests for entity boundaries.