Exemple #1
0
        public async Task ThenItShouldCheckForUpdatedProviders()
        {
            var cancellationToken = new CancellationToken();

            await _function.RunAsync(
                new TimerInfo(new ConstantSchedule(new TimeSpan(0, 1, 0)), new ScheduleStatus(), false),
                cancellationToken);

            _changeProcessorMock.Verify(processor => processor.CheckForUpdatedProvidersAsync(cancellationToken),
                                        Times.Once);
        }
Exemple #2
0
        public async Task ThenItShouldCallChangeProcessor()
        {
            await _function.RunAsync(new TimerInfo(new CronSchedule(CrontabSchedule.Parse("0 0 1 1 *")), new ScheduleStatus()), _cancellationToken);

            _changeProcessorMock.Verify(processor => processor.ProcessChangesAsync(_cancellationToken), Times.Once);
        }