public void SetLastCompletedTime(DateTimeOffset dateTime) { var blobPath = TimerHealthCheckHelper.GetBlobPath(TimerTriggerInfos.Single().TimerFullTypeName, HelperOptions); var status = new TimerHealthCheckStatus { LastCheckpoint = dateTime }; MockBlobStorage.Setup(x => x.DownloadFileAsTextAsync(It.Is <string>(y => y == blobPath), It.IsAny <CancellationToken>())).ReturnsAsync(JsonSerializer.Serialize(status)); }
public TimerTriggerFunction(TimerHealthCheckHelper timerHelper) { _timerHelper = timerHelper; }