public async Task ProcessTest() { using var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(30)); var cancellationToken = cancellationTokenSource.Token; await using var hookService = new HookService { new (new Command("process-job"), ConsoleKey.K, isProcessing : true), }; await using var moduleService = new StaticModuleService( TestModules.CreateProcessJobRunnerCommand() ); await using var runnerService = new RunnerService( moduleService, moduleService, hookService ); using var exceptions = new IServiceBase[] { moduleService, runnerService, hookService }.EnableLogging(cancellationTokenSource); await hookService.InitializeAsync(cancellationToken); await Task.Delay(TimeSpan.FromSeconds(5), cancellationToken); }