public async Task TriggerOrchestrator_Should_StartNewDurableOrchestratorAsync() { //Arrange var knownAction = fixture.Create <OrchestrationActionModel>(); //Act await DurableFunctionOrchestrator.TriggerOrchestrator(knownAction, _loggerContext.Object, _durableOrchestrationClientContext.Object); //Assert _durableOrchestrationClientContext.Verify(x => x.StartNewAsync(Constants.DurableOrchestrator, null, knownAction)); }
public void OneTimeSetup() { fixture = new Fixture(); _serviceBusServiceContext = new Mock <IServiceBusService>(); _serviceBusServiceContext.Setup(x => x.SendResultToStactize(It.IsAny <OrchestrationResultModel>())) .Returns(Task.CompletedTask); _loggerContext = new Mock <ILogger>(); SUT = new DurableFunctionOrchestrator(_serviceBusServiceContext.Object); }