Integration test for jobs #2269
Answered
by
lahma
fikretasma
asked this question in
Q&A
-
Hi . How can I write integration test for quartz.net jobs to test if the jobs did actually worked as excepted ? I searched for examples but couldn't find any example for the integration test. |
Beta Was this translation helpful? Give feedback.
Answered by
lahma
Feb 5, 2024
Replies: 1 comment
-
You would test it like any other code you've written. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fikretasma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would test it like any other code you've written.
var job = new MyJob(); await job.Execute(context); // checks for outcome that it's desired
. You can think this like if you job'sExecute
method's only line of code would benew MyService().DoSomething();
- how would you test yourMyService
?