public async Task TestRemoveJob() { var schedulerManager = new SchedulerManager(null); schedulerManager.JobRemoved += (sender, args) => { Assert.Equal(schedulerManager, sender); Assert.Equal("Job", args.Name); args.Success = Task.FromResult(true); }; Assert.True(await schedulerManager.RemoveJobAsync("Job")); }
public async Task TestRemoveJobNoEventSubscription() { var schedulerManager = new SchedulerManager(null); Assert.False(await schedulerManager.RemoveJobAsync("Job")); }