Esempio n. 1
0
        public async Task ExecuteAsync_QueueHasNoRecord_DoNotExecute()
        {
            // Arrange

            //when there is no record(s) in the queue
            MockRetrieveNextInExportWorkerQueueAsync(null);

            // Act
            await _exportWorkerJob.ExecuteAsync();

            // Assert
            AssertResetUnfishedJobsAsyncWasCalled(1);
            AssertRetrieveNextBatchInExportWorkerQueueAsyncWasCalled(1);
            AssertDropTableAsyncWasCalled(2);
        }