Skip to content

sgebb/DurableMocks

Repository files navigation

DurableMocks

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

How to:

  1. using DurableMocks;
  2. var host = hostBuilder.Build();
    _taskOrchestrationContext = host.Services.CreateDurableMock(typeof(OrchestratorOutput).Assembly);
  3. var input = new OrchestratorInput("test", 9);
    var res = await _taskOrchestrationContext.CallTestOrchestratorAsync(input);

About

Anti-mocking framework for Durable Functions

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages