public async Task Enqueue_VoidInstanceMethod_ShouldSucceed() { var testServiceProvider = new TestServiceProvider(); var testStore = new MemoryJobStore(); var jobManager = new JobManager(testStore); var jobRunner = new JobRunner(testServiceProvider); await jobManager.EnqueueAsync <TestJobs>((t) => t.InstanceJob1(1)); JobDescriptor?job = await testStore.NextAsync(CancellationToken.None); Assert.Equal("InstanceJob1", job !.Call.Method); jobRunner.Invoke(job.Call, CancellationToken.None); }