public async Task LmiImportTimerTriggerRunFunctionReturnsBadRequestForPublishedEnvironment() { // Arrange var lmiImportTimerTrigger = new LmiImportTimerTrigger(fakeLogger, publishedEnvironmentValues); // Act await lmiImportTimerTrigger.Run(timerInfo, fakeDurableOrchestrationClient).ConfigureAwait(false); // Assert A.CallTo(() => fakeDurableOrchestrationClient.StartNewAsync(A <string> .Ignored, A <OrchestratorRequestModel> .Ignored)).MustNotHaveHappened(); }
public async Task LmiImportTimerTriggerRunFunctionIsSuccessful() { // Arrange var lmiImportTimerTrigger = new LmiImportTimerTrigger(fakeLogger, draftEnvironmentValues); // Act await lmiImportTimerTrigger.Run(timerInfo, fakeDurableOrchestrationClient).ConfigureAwait(false); // Assert A.CallTo(() => fakeDurableOrchestrationClient.StartNewAsync(A <string> .Ignored, A <OrchestratorRequestModel> .Ignored)).MustHaveHappenedOnceExactly(); }