Anti-mocking framework for Durable Functions Uses FakeItEasy under the hood to mock TaskOrchestrationContext, and routes the implementation to the requested Activity or Orchestration Does not verify serialization and deserialization of inputs and outsputs
-
using DurableMocks;
-
var host = hostBuilder.Build(); _taskOrchestrationContext = host.Services.CreateDurableMock(typeof(OrchestratorOutput).Assembly);
-
var input = new OrchestratorInput("test", 9); var res = await _taskOrchestrationContext.CallTestOrchestratorAsync(input);